CommandAppearanceAttribute class

Specifies what to render (image, text, or both) for this item.

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"),    

 // Menu item display style                                      

 CommandAppearanceAttribute(ToolStripItemDisplayStyle.ImageAndText)]

public const long m_nColorID =  FlexConstants.m_nUserDefinedControlStartID + 1;

}