ModelingWindowPane.PrimarySelection Property
Gets the primary selected element in the window pane.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaração
Public Property PrimarySelection As Object
Get
Set
public Object PrimarySelection { get; set; }
public:
virtual property Object^ PrimarySelection {
Object^ get () sealed;
void set (Object^ value) sealed;
}
abstract PrimarySelection : Object with get, set
override PrimarySelection : Object with get, set
final function get PrimarySelection () : Object
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.