ModelingWindowPane.PrimarySelection Property

Gets the primary selected element in the modeling window. If the window contains no primary element, the first element that was selected becomes the primary element.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Public Property PrimarySelection As Object
'使用
Dim instance As ModelingWindowPane
Dim value As Object

value = instance.PrimarySelection

instance.PrimarySelection = value
public Object PrimarySelection { get; set; }
public:
virtual property Object^ PrimarySelection {
    Object^ get () sealed;
    void set (Object^ value) sealed;
}
public final function get PrimarySelection () : Object
public final function set PrimarySelection (value : Object)

Property Value

Type: System.Object

The primary selected element. If no primary element is set, the first element in the collection.

Implements

ISelectionService.PrimarySelection

Permissions

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

Microsoft.VisualStudio.Modeling.Shell Namespace