Share via


ModelExplorerTreeContainer.AddExplorerNodeCustomSetting Method

Associates an image with an element type 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
Protected Sub AddExplorerNodeCustomSetting ( _
    domainClassId As Guid, _
    treeNodeImage As Image, _
    showDomainClassName As Boolean _
)
protected void AddExplorerNodeCustomSetting(
    Guid domainClassId,
    Image treeNodeImage,
    bool showDomainClassName
)
protected:
void AddExplorerNodeCustomSetting(
    Guid domainClassId, 
    Image^ treeNodeImage, 
    bool showDomainClassName
)
member AddExplorerNodeCustomSetting : 
        domainClassId:Guid * 
        treeNodeImage:Image * 
        showDomainClassName:bool -> unit
protected function AddExplorerNodeCustomSetting(
    domainClassId : Guid, 
    treeNodeImage : Image, 
    showDomainClassName : boolean
)

Parameters

  • domainClassId
    Type: System.Guid

    The GUID that is assigned to the model to which the element belongs.

  • showDomainClassName
    Type: System.Boolean

    true if you want to show the name of the element in Model Explorer; otherwise, false if you want to show only the image.

Remarks

If a custom image is not supplied for an element, the default image is used.

.NET Framework Security

See Also

Reference

ModelExplorerTreeContainer Class

Microsoft.VisualStudio.Modeling.Shell Namespace