ModelingDocData.RootElement Property

Gets the root element in the document.

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 ReadOnly Property RootElement As ModelElement
public ModelElement RootElement { get; }
public:
property ModelElement^ RootElement {
    ModelElement^ get ();
}
member RootElement : ModelElement with get
function get RootElement () : ModelElement

Property Value

Type: Microsoft.VisualStudio.Modeling.ModelElement
The root element or, if the document represents the modeling designer store, nulla null reference (Nothing in Visual Basic).

Remarks

The root element identifies the section of the modeling designer store that is assigned to the document. By default, the root element is the first element in the .dsl file. The Domain Model element is typically the root element.

.NET Framework Security

See Also

Reference

ModelingDocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace