ModelingWindowPane.PrimarySelection Property
Gets the primary selected element in the window pane.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'Declaration
Public Property PrimarySelection As Object
'Usage
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
If the window contains no primary element, the first element in the SelectedElements collection is returned.
Implements
ISelectionService.PrimarySelection
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.