Muokkaa

Jaa


Window.ID property (Visio)

Gets the ID of an object. Read-only.

Syntax

expression.ID

expression A variable that represents a Window object.

Return value

Long

Remarks

For Window objects, the ID property can be used with the ItemFromID property of a Windows collection to retrieve a Window object from the collection without iterating through the collection. A Window object whose Type property is set to visAnchorBarBuiltIn returns an ID of visWinIDCustProp, visWinIDDrawingExplorer, visWinIDFormulaTracing, visWinIDMasterExplorer, visWinIDPanZoom, visWinIDSizePos, or visWinIDStencilExplorer. A Window object whose Type property is set to visAnchorBarAddon returns an ID that is unique within its Windows collection for the lifetime of that collection. If a Window object has an ID of visInvalWinID, you cannot use the ItemFromID property to retrieve the Window object from its collection.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.