ClientNodeResources.Add Method

Parent Object: ClientNodeResources

Description

Method that creates a new ClientNodeResource. The new ClientNodeResource is returned. If no expanded icon is passed in, the node ending up with this resource will use the standard icon as the icon to use when it is expanded. The state icon is used to prefix the regular icon, typically denoting the dynamic state of the object it represents.

Syntax

ClientNodeResources.Add( ClientId As String, Id As Long, Icon As IPictureDisp ) As ClientNodeResource

Parameters

Name Type Description
ClientId String Input string that uniquely identifies the client. Some suggestions might be the 'ProgID' of the Add-In creating the resource, or its CLSID in a string form, e.g. "{C9A6C580-3817-11D0-BE4E-080036E87B02}", although any unique string is valid.
Id Long Identifier that uniquely identifies the resource to the client. This identifier must be unique within the context of this owning document, and within this AddIn. The ClientId and the Id taken together uniquely identify this object.

Icon IPictureDisp Input IPictureDisp of a 16X16 pixel image. Only bitmaps are supported as a valid input type.

Version

Introduced in version 8