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


IToolbarMenu2.Customize 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.Customize Property
ArcGIS Developer Help

IToolbarMenu2.Customize Property

Indicates if the ToolbarMenu is in customize mode.

[Visual Basic .NET]
Public Property Customize As Boolean
[C#]
public bool Customize {get; set;}
[C++]
HRESULT get_Customize(
  VARIANT_BOOL newVal
);
[C++]
HRESULT put_Customize(
  Boolean* newVal
);
[C++]
Parameters
newVal [in]

newVal is a parameter of type bool newVal [out, retval]
newVal is a parameter of type bool*

Product Availability

Available with ArcGIS Engine.

Description

Determines whether a ToolbarMenu is in customize mode at run time. The behavior of the ToolbarMenu changes when in customize mode. This property is false by default.

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

Use the left mouse button to select an item on the ToolbarMenu. Either drag the selected item to a new position on the ToolbarMenu as indicated by the black verticle line, or drag and drop the item off the ToolbarMenu to remove item.

Use the right mouse button to select an item and display the customize menu. Use the customize menu to either delete the item or set its IToolbarItem::Style, IToolbarItem::Group or IToolbarItem::GroupSpacing properties.

If the CustomizeDialog is displayed on the screen whilst the ToolbarMenu is in customize mode, new items can be added to the ToolbarMenu by either double clicking on an item in the CustomizeDialog or by dragging and dropping an item from the CustomizeDialog to the ToolbarMenu.

See Also

IToolbarMenu2 Interface