CommandImageAttribute class

Specifies the image that is displayed on this item. This icon file should be stored under the directory defined by FlexManager.DefaultIconsPath.

Examples

using LinsUI;

 

public static class LinsResource

{

[CommandGroupNameAttribute("Main"), // The Category name

 // Command name

 CommandNameAttribute("Import"),

 // Tell the application, it is a menu item 

 CommandTypeAttribute(TSITEM_TYPEID.MENUITEM),

 // The Menu item Icon

 CommandImageAttribute("import2.ico")]    

public const long m_nColorID =  FlexConstants.m_nUserDefinedControlStartID + 1;

}