Delen via


ISchemaModelViewer.SelectNode Method

Selects and optionally expands the node for the specified model element.

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

Syntax

'Declaration
Function SelectNode ( _
    element As IModelElement, _
    expand As Boolean _
) As ISchemaModelViewerNode
ISchemaModelViewerNode SelectNode(
    IModelElement element,
    bool expand
)
ISchemaModelViewerNode^ SelectNode(
    IModelElement^ element, 
    bool expand
)
abstract SelectNode : 
        element:IModelElement * 
        expand:bool -> ISchemaModelViewerNode 
function SelectNode(
    element : IModelElement, 
    expand : boolean
) : ISchemaModelViewerNode

Parameters

  • expand
    Type: System.Boolean
    Flag that indicates whether the node will be expanded as well as selected.

Return Value

Type: Microsoft.VisualStudio.Data.Schema.Package.Project.SchemaModelViewer.ISchemaModelViewerNode
The Schema View node associated with the model element.

Remarks

The tree will be expanded up to and, optionally, including the node that is associated with the specified model element.

.NET Framework Security

See Also

Reference

ISchemaModelViewer Interface

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