Share via


ModelingWindowPane.PrimarySelection Property

Gets the primary selected element in the window pane.

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

Syntax

'Declaration
Public Property PrimarySelection As Object
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: Object
If the window contains no primary element, the first element in the SelectedElements collection is returned.

Implements

ISelectionService.PrimarySelection

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

Microsoft.VisualStudio.Modeling.Shell Namespace