View::Selection property
The Selection property returns the set of selected nodes. This property is read-only.
Syntax
Property Selection As Nodes
Property value
The set of selected items in the form of a Nodes collection.
Examples
' Retrieve the Views Selection property.
Dim objSelNodes As MMC20.Nodes
Set objSelNodes = objView.Selection
' Use the Selection nodes.
' This code displays the count of items in the Selection.
MsgBox (objSelNodes.Count)
' Use objSelNodes for other processing.
' ...
' Free the object when done.
Set objSelNodes = Nothing
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
DLL |
|
IID |
IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38 |