ModelExplorerTreeContainer.SelectedElement Property

Gets the element that is selected in Model Explorer.

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

Syntax

'宣言
Protected ReadOnly Property SelectedElement As ModelElement
'使用
Dim value As ModelElement

value = Me.SelectedElement
protected ModelElement SelectedElement { get; }
protected:
property ModelElement^ SelectedElement {
    ModelElement^ get ();
}
protected function get SelectedElement () : ModelElement

Property Value

Type: Microsoft.VisualStudio.Modeling.ModelElement

The element that is selected in Model Explorer; if no element is selected, a null reference (Nothing in Visual Basic).

Remarks

This method is protected, and only the derived child class can access it.

Permissions

See Also

Reference

ModelExplorerTreeContainer Class

ModelExplorerTreeContainer Members

Microsoft.VisualStudio.Modeling.Shell Namespace