Diagram.NavigationRoot Property

Gets the root shape for the diagram.

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

Syntax

'宣言
Public ReadOnly Property NavigationRoot As ShapeElement
'使用
Dim instance As Diagram
Dim value As ShapeElement

value = instance.NavigationRoot
public ShapeElement NavigationRoot { get; }
public:
property ShapeElement^ NavigationRoot {
    ShapeElement^ get ();
}
public function get NavigationRoot () : ShapeElement

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement

The root shape for the diagram.

Remarks

Typically, the root shape for the diagram is the diagram itself. If the diagram cannot be selected as the root shape, the first shape that can be selected in the diagram is returned.

Permissions

See Also

Reference

Diagram Class

Diagram Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace