Delen via


ModelExplorerTreeContainer.FindNodeForElement Method

Finds the node to which the element is assigned in Model Explorer.

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

Syntax

'Declaration
Public Overridable Function FindNodeForElement ( _
    element As ModelElement _
) As ExplorerTreeNode
public virtual ExplorerTreeNode FindNodeForElement(
    ModelElement element
)
public:
virtual ExplorerTreeNode^ FindNodeForElement(
    ModelElement^ element
)
abstract FindNodeForElement : 
        element:ModelElement -> ExplorerTreeNode  
override FindNodeForElement : 
        element:ModelElement -> ExplorerTreeNode
public function FindNodeForElement(
    element : ModelElement
) : ExplorerTreeNode

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Shell.ExplorerTreeNode
The node that is assigned to the element; if the element is not assigned to a node, null.

.NET Framework Security

See Also

Reference

ModelExplorerTreeContainer Class

Microsoft.VisualStudio.Modeling.Shell Namespace