This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Style Property (ArcObjects .NET 10.5 SDK) |
The display style of this command item.
[Visual Basic .NET] Public Property Style As esriCommandStyles
[C#] public esriCommandStyles Style {get; set;}
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).