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

IToolbarControl.TextAlignment Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControl Interface > IToolbarControl.TextAlignment Property
ArcGIS Developer Help

IToolbarControl.TextAlignment Property

The caption placement for all items on the ToolbarControl.

[Visual Basic .NET]
Public Property TextAlignment As esriToolbarTextAlignment
public esriToolbarTextAlignment TextAlignment {get; set;}
HRESULT get_TextAlignment(
HRESULT put_TextAlignment(

Product Availability

Available with ArcGIS Engine.


Returns or sets whether each item on the ToolBarControl will display the ICommand::Caption property aligned to the right or to the bottom of the item. By default the captions will be aligned to the right of items.


Captions are only displayed for those items with IToolbarItem::Style set to esriCommandStyleTextOnly or esriCommandStyleIconAndText.

See Also

IToolbarControl Interface