次の方法で共有


ModelExplorerTreeContainer Class

Definition

Tree Container

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

Constructors

ModelExplorerTreeContainer(IServiceProvider)

Constructor

Fields

WatermarkBorderOffset

WatermarkBorderOffset from the bounding rectangle.

(Inherited from ContainerBase)

Properties

BorderRectangle

Border Rect

(Inherited from ContainerBase)
ContextMenuCommandId

Specifies the context menu that should be shown for the model explorer.

CurrentParentElement

Returns the parent of the model element currently selected in the explorer window. Returns null if there is no parent.

ElementOperations

Returns the current diagram

ElementVisitor

Element Visitor

ElementVisitorFilter

Element Visitor Filter

GetModelElementDisplayNameEventHandler

Returns the event handler which allows the derived class to supply tree node display name

HasBorder

Always has a border

(Inherited from ContainerBase)
IsValidDocData

Is the DocData valid (do we care about it?)

ModelingDocData

DocData

ObjectModelBrowser

The explorer tree control itself

RootElementDomainClassId

Returns the root elements domain class Id. The is the very top level tree node in the TreeView

RootElements

Root Elements

SelectedElement

Returns the model element currently selected in the explorer window. Returns null if no model element is selected.

SelectedRole

Returns the role currently selected in the explorer window. Returns null if no role is selected.

SelectionService

Selection

ServiceProvider

ServiceProvider

VisitRelationships

Indicates whether relationships (links) should be included as part of the element traversal. The default value is true.

Watermark

Watermark

(Inherited from ContainerBase)

Methods

AddCommandHandlers(IMenuCommandService)

Adds command handlers for commands that appear in the context menu. Base implementation will only add command handlers if a handler is not already registered, to allow derived classes to override handling of a particular command. For this reason, derived classes should add commands first before calling the base class.

AddExplorerNodeCustomSetting(Guid, Image, Boolean)

Method allows the user to associate image with the domainClass object. This allows the user to customize the image used for each type of modelelement.

AddHiddenPath(ICollection<Guid>)

Retrns the current collection of Paths (in Guid form) for elements to be hidden from the model explorer.

AddRootElement(ModelElement)

Add Root Element

CreateElementVisitor()

Create IElementVisitor

CreateElementVisitorFilter()

Create IElementVisitorFilter

CreateModelElementTreeNode(ModelElement)

Extension point for supplying user defined TreeNode.

CreateRoleGroupTreeNode(DomainRoleInfo)

Extension point for supplying user defined TreeNode which represents role multiplicity 0..* or 1..*

CreateRoleTreeNode(DomainRoleInfo)

Extension point for supplying user defined TreeNode which represents role multiplicity 1 or 0..1

Dispose(Boolean)

Disposes the state of this object.

FindNodeForElement(ModelElement)

Finds the tree node in the model explorer corresponding to the given ModelElement. If the element does not have a corresponding node in the tree, this method returns null.

FindRootElements(Store)

Finds all root elements in a store. By default this is a list of all orphaned elements, excluding ExtensionElements.

InsertNode(ExplorerTreeNode, ExplorerTreeNode)

Insert childNode as a new child of parentNode. If parentNode is null, then insert a new root. This is the correct way to insert a new node into the tree maintaining its internal state, in particular the element to node mapping.

InsertTreeNode(TreeNodeCollection, ExplorerTreeNode)

Method to insert the incoming node into the TreeNodeCollection. This allows the derived class to change the sorting behavior. N.B. This should really be protected, and is only intended as an override point. Do not call it directly, but rather call InsertNode()

IsAddableRoleForElement(ModelElement, DomainRoleInfo)

Query whether the specified role should be considered a candidate for addition through the explorer add menus.

IsExplorableRoleForElement(ModelElement, DomainRoleInfo)

Query whether the specified role should be considered a candidate for display in the explorer. It may not be displayed in the explorer if hidden.

OnGotFocus(EventArgs)

Got Focus

OnPaint(PaintEventArgs)

Event handler when window is being repainted

(Inherited from ContainerBase)
ProcessOnMenuDeleteAllCommand()

Virtual method to process the menu DeleteAll operation

ProcessOnMenuDeleteCommand()

Virtual method to process the menu Delete operation

ProcessOnMenuPropertiesCommand()

Virtual method to process the menu Properties operation

ProcessOnStatusDeleteAllCommand(MenuCommand)

Virtual method for processing the DeleteAll menu status handler.

ProcessOnStatusDeleteCommand(MenuCommand)

Virtual method for processing the Delete menu status handler.

ProcessOnStatusPropertiesCommand(MenuCommand)

Virtual method for processing the Properties menu status handler.

RefreshBrowserView()

Refresh the contents of the tree from the model.

RemoveNode(ExplorerTreeNode)

Remove a node from the tree

RemoveRootElement(ModelElement)

Remove Root Element

SubscribeToImsEvent(Store)

Subscribe IMS events

TreeNodeTextChanged(ExplorerTreeNode)

Virtual method to indicate tree node text has been changed.

UnsubscribeToImsEvent(Store)

Unsubscribe IMS events

WndProc(Message)

Process window messages.

Applies to