Description
The first selected McGraphObj, or optionally, the selected McGraphObj at a given index.
-
Property type
-
A McGraphObj object.
-
Syntax
-
object.SelectedGraphObj([Index])
The SelectedGraphObj Property syntax has these parts: |
| object | An expression evaluating to an object of type McGraphOverlay. | | Index | Optional. A Long value. An optional argument giving an index in the list of selected McGraphObj instances. If not given, then the Index used is 0, that is the first-to-be-drawn selected McGraphObj.
| Remarks
This property can be used to get a particular selected graph object. To traverse all selected graph objects, you can call SetEnumFilter and then use For Each to get each instance.
Exceptions
An error is generated if there is no McGraphObj selected or if the given Index argument is outside the range of 0 to SelectedCount-1.
Notes
The selected McGraphObj instances are sorted by their McGraphObj.DrawingOrder property. This ensures that a set of selected objects copied to the clipboard and then pasted (see EditCopy and EditPaste) or moved in the drawing order (see MoveToFront and MoveToBack) will keep the same relative drawing order.
The exposed object's McGraphObj.SelectedOrder property will be equal to the SelectedGraphObj Index argument.
|