Deselect Method

Removes selection from a shape with the specified ID, that belongs to the page or group displayed in the window.

Applies to: Window object

Syntax

[[Let] boolRet =] object.Deselect ( shapeID )

The Deselect method syntax has these parts:

Part Description
object Required. An expression that returns an instance of the Window object.

shapeID

Required. An expression that returns a Long value. An ID of the shape to be deselected.
boolRet Optional. A Boolean type variable.

Remarks

This method is only effective when the window is of the library view type (see the Type property). For windows of other type the Deselect method returns False.

If there is the shape with the specified ID among the shapes displayed in the page or group window, the method deselects the shape and returns True, otherwise it returns False. An inverse method to Deselect is the Select method, which selects a shape with the specified ID.

 

See Also

ID property, Type property, DeselectAll method, Select method, SelectAll method, SelectedNum method