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


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

IToolbarMenu2.AlignLeft Property

Indicates if the ToolbarMenu displays aligned to the left or right.

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

pVal is a parameter of type bool* pVal [in]
pVal is a parameter of type bool

Product Availability

Available with ArcGIS Engine.

Description

Determines whether a ToolbarMenu (and any sub menus it contains) when displayed using the IToolbarMenu::PopupMenu method displays in a position aligned to the left of the users mouse click. This property is true by default.

If the ToolbarMenu has also been added to the ToolbarControl, the ToolbarControl will override the AlignLeft property with the IToolbarControl2::AlignLeft property, before the ToolbarMenu is displayed with the IToolbarMenu::PopupMenu method.

Remarks

If a ToolbarMenu 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 will popup aligned in a direction that will ensure it is fully visible.

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

See Also

IToolbarMenu2 Interface

.NET Samples

Configure a command for a specific locale