ArcObjects Library Reference (Controls)  

IToolbarControl2.AlignLeft Property

Indicates if the ToolbarControl displays menu and palette items aligned to the left or right.

[Visual Basic .NET]
Public Property AlignLeft As Boolean
[C#]
public bool AlignLeft {get; set;}
[C++]
HRESULT get_AlignLeft(
  VARIANT_BOOL* pVal
);
[C++]
HRESULT put_AlignLeft(
  VARIANT_BOOL pVal
);
[C++]

Parameters

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

Product Availability

Available with ArcGIS Engine.

Description

Determines whether ToolbarMenu and ToolbarPalette items (and any sub menus they contain) on the ToolbarControl popup in a position aligned to the left of the ToolbarControl. This property is true by default.

Remarks

If a ToolbarMenu or ToolbarPalette is to popup in a position so close to edge of a screen display, that it will not be fully visible, the AlignLeft property will be ignored. The ToolbarMenu or ToolbarPalette will popup aligned in a direction that will ensure it is fully visible.

AlignLeft does not affect the alignment of an ICommand::Caption, IToolbarMenu::Caption or  IToolbarPalette::Caption displayed on a ToolbarItem. In order to change the direction text is displayed the RTL (right to left) display environment variable need changing. The AlignLeft property will override any RTL (right to left) display environment variables that affect the position of drop downs.

See Also

IToolbarControl2 Interface