This document is archived and information here might be outdated.  Recommended version.


ICommandItem.Style Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Framework)  

ICommandItem.Style Property

The display style of this command item.

[Visual Basic .NET]
Public Property Style As esriCommandStyles
[C#]
public esriCommandStyles Style {get; set;}

Product Availability

Available with ArcGIS Desktop.

Description

The Style of a command item determines whether the command item is displayed on a command bar using its caption, image or both. Refer to the esriCommandStyles constants topic for the values for Style.

When a command is put on a toolbar, the command is displayed with the bitmap only by default; the display type is set to Image Only (Style=esriCommandStyleIconOnly).

When a command is put on a menu, the command is displayed with the bitmap and caption by default; the display type is set to Image and Text (Style=esriCommandStyleIconAndText).

However, if the Bitmap property (ICommand::Bitmap) is not set for this command, then the command will be displayed with the caption only by default when it is put on a toolbar or menu; the display type is set to Text Only (Style=esriCommandStyleTextOnly).

See Also

ICommandItem Interface | esriCommandStyles Constants