共用方式為


ModelElementTreeNode Class

Definition

TreeNode implementation for displaying a ModelElement

public ref class ModelElementTreeNode : Microsoft::VisualStudio::Modeling::Shell::ElementTreeNode
public class ModelElementTreeNode : Microsoft.VisualStudio.Modeling.Shell.ElementTreeNode
type ModelElementTreeNode = class
    inherit ElementTreeNode
Public Class ModelElementTreeNode
Inherits ElementTreeNode
Inheritance

Constructors

ModelElementTreeNode(ModelElement)

Initialize a new instance of ModelElementTreeNode

ModelElementTreeNode(ModelExplorerTreeContainer, ModelElement)
Obsolete.

Obsolete Constructor

Properties

Container

The explorer tree container hosting this node

(Inherited from ExplorerTreeNode)
DefaultImageIndex

Get/Set the index into the TreeView image list to be used for the icon representing this node if not overridden by an icon based on the node content

(Inherited from ExplorerTreeNode)
Disposed

Whether or not this node has been explicitly disposed of

(Inherited from ExplorerTreeNode)
KeepNode

Used to prune tree during updates

(Inherited from ExplorerTreeNode)
ModelElement

Read-only accessor for ModelElement being shown

RepresentedElement

The ModelElement this node represents (if any)

(Inherited from ExplorerTreeNode)
RepresentedRole

The Domain Role this node is representing (if any)

(Inherited from ExplorerTreeNode)
ShowDomainClass

Get/Set whether to show the DomainClass Name right after the ModelElement name (e.g "foo (Foo)" in the tree node text) May be ignored if the node type does not represent model elements

(Inherited from ElementTreeNode)

Methods

Dispose() (Inherited from ExplorerTreeNode)
Dispose(Boolean)

Override Dispose to unhook observation of element name changes

(Inherited from ElementTreeNode)
GetRepresentedElement() (Inherited from ElementTreeNode)
ProvideNodeText()

Suppply the text for the node

SetRepresentedElement(ModelElement) (Inherited from ElementTreeNode)
Update()

Force an update of the node's visual representation, i.e. text and icon

(Inherited from ElementTreeNode)
UpdateNodeText()

Force an update of the text of the node

(Inherited from ExplorerTreeNode)

Applies to