Table of contents
TOC
Collapse the table of content
Expand the table of content

Selection.PrimaryItem Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the Shape object that is a Selection object's primary item. Read-only.

Syntax

expression . PrimaryItem

expression A variable that represents a Selection object.

Return Value

Shape

Remarks

In a drawing window, the primary selected item is shown with green selection handles and non-primary selected items are shown with blue selection handles. The outcome of some operations is affected by which selected item is the primary item. For example, the Align Shapes command aligns non-primary selected items with the primary selected item.

If a Selection object contains no Shape objects, or the primary Shape object is one that isn't enumerated given the Selection object's IterationMode property, the PrimaryItem property returns Nothing and raises no exception.

© 2018 Microsoft