SetIcon method

Assigns a new icon to an item.

Syntax


C++

HRESULT SetIcon (
   
ERUIconType IconType,
   LONG
IconID)

Scripting languages
Object.SetIcon (
   IconType as ERUIconType,
   IconID as Long
)

Parameters


IconType

Value from ERUIconType enum to specify whether it is a standard or custom icon.

IconID

Value from ERUStandardIcons enum for standard icons or a Long value for custom icon.

Return value


C++

The return code.

Scripting languages

None.

Remarks


You can pick an icon from the standard eRoom icon choices or import custom icons.

Home

Applies to

IERUPrincipal Item


See also

Using Items