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


IToolbarControlDefault.TextAlignment Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IToolbarControlDefault.TextAlignment Property

The caption placement for all items on the ToolbarControl.

[Visual Basic .NET]
Public Property TextAlignment As esriToolbarTextAlignment
[C#]
public esriToolbarTextAlignment TextAlignment {get; set;}
[C++]
HRESULT get_TextAlignment(
  esriToolbarTextAlignment* pVal
);
[C++]
HRESULT put_TextAlignment(
  esriToolbarTextAlignment pVal
);
[C++]

Parameters pVal [out, retval]
pVal is a parameter of type esriToolbarTextAlignment pVal [in]
pVal is a parameter of type esriToolbarTextAlignment

Product Availability

Available with ArcGIS Engine.

Description

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.

Remarks

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

See Also

IToolbarControlDefault Interface