Dela via


SchemaHierarchyBase.GetElementNameStyle Method

Returns the display style for model elements.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Protected Overridable Function GetElementNameStyle ( _
    element As IModelElement _
) As ElementNameStyle
protected virtual ElementNameStyle GetElementNameStyle(
    IModelElement element
)
protected:
virtual ElementNameStyle GetElementNameStyle(
    IModelElement^ element
)
abstract GetElementNameStyle : 
        element:IModelElement -> ElementNameStyle 
override GetElementNameStyle : 
        element:IModelElement -> ElementNameStyle 
protected function GetElementNameStyle(
    element : IModelElement
) : ElementNameStyle

Parameters

Return Value

Type: Microsoft.Data.Schema.ElementNameStyle
Display style.

Remarks

In the base implementation, the simple name is used if the element has a parent, and a fully qualified name is used if the element is a top-level item. Derived classes can override this method as needed.

.NET Framework Security

See Also

Reference

SchemaHierarchyBase Class

Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer Namespace