ModelExplorerTreeContainer.AddExplorerNodeCustomSetting 方法

定义

方法允许用户将图像与 domainClass 对象关联。 这允许用户自定义用于每种类型的 modelelement 的映像。

protected:
 void AddExplorerNodeCustomSetting(Guid domainClassId, System::Drawing::Image ^ treeNodeImage, bool showDomainClassName);
protected void AddExplorerNodeCustomSetting (Guid domainClassId, System.Drawing.Image treeNodeImage, bool showDomainClassName);
member this.AddExplorerNodeCustomSetting : Guid * System.Drawing.Image * bool -> unit
Protected Sub AddExplorerNodeCustomSetting (domainClassId As Guid, treeNodeImage As Image, showDomainClassName As Boolean)

参数

domainClassId
Guid

domainclass,其中图像为 assoiciated。

treeNodeImage
Image

要使用的映像

showDomainClassName
Boolean

表示在模型元素名称旁边显示 className。

适用于