This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControl2 Interface (ArcObjects .NET 10.5 SDK) |
Provides access to members that control the ToolbarControl.
The IToolbarControl2 interface provides additional members for tasks related to the ToolbarControl, such as setting appearance properties, showing any hidden items on a hidden items menu, and saving and loading the contents of the ToolbarControl.
Description | ||
---|---|---|
AboutBox | Displays a dialog of information about the ToolbarControl. | |
AboutBox | Displays a dialog of information about the ToolbarControl. | |
AddItem | Adds an item to the ToolbarControl. | |
AddItem | Adds an item to the ToolbarControl. | |
AddMenuItem | Adds a menu item to the ToolbarControl. | |
AddMenuItem | Adds a menu item to the ToolbarControl. | |
AddToolbarDef | Appends the contents of the toolbar definition, specified by Guid or ToolbarDef, to the toolbar control. | |
AddToolbarDef | Appends the contents of the toolbar definition, specified by Guid or ToolbarDef, to the toolbar control. | |
AlignLeft | Indicates if the ToolbarControl displays menu and palette items aligned to the left or right. | |
Appearance | The appearance of the ToolbarControl. | |
Appearance | The appearance of the ToolbarControl. | |
BackColor | Background color of the ToolbarControl. | |
BorderStyle | The border style of the ToolbarControl. | |
BorderStyle | The border style of the ToolbarControl. | |
Buddy | The object that will have its current tool managed by the toolbar. | |
Buddy | The object that will have its current tool managed by the toolbar. | |
CommandPool | The command pool used by the ToolbarControl to manage command objects. The command pool object maybe shared with other ToolbarControls and ToolbarMenus. | |
CommandPool | The command pool used by the ToolbarControl to manage command objects. The command pool object maybe shared with other ToolbarControls and ToolbarMenus. | |
Count | The number of items on the ToolbarControl. | |
Count | The number of items on the ToolbarControl. | |
CurrentTool | The current tool of the buddy. | |
CurrentTool | The current tool of the buddy. | |
Customize | Indicates if the ToolbarControl is in customize mode. | |
Customize | Indicates if the ToolbarControl is in customize mode. | |
CustomProperty | A property to associate data with a control. | |
CustomProperty | A property to associate data with a control. | |
Enabled | Indicates whether the ToolbarControl can respond to user generated events. | |
Enabled | Indicates whether the ToolbarControl can respond to user generated events. | |
FadeColor | Background fade color of the ToolbarControl. | |
FillDirection | The fill direction of the ToolbarControl background color. | |
Find | Returns the index of the first item containing the given command, menu or palette. Returns -1 if the command is not found. | |
Find | Returns the index of the first item containing the given command, menu or palette. Returns -1 if the command is not found. | |
GetItem | Returns the item at the specified index from the ToolbarControl. | |
GetItem | Returns the item at the specified index from the ToolbarControl. | |
GetItemRect | Returns the dimensions of the item at the specified index. | |
GetItemRect | Returns the dimensions of the item at the specified index. | |
HitTest | Returns the index of the item at the specified x and y coordinates. | |
HitTest | Returns the index of the item at the specified x and y coordinates. | |
hWnd | Handle to the window associated with the ToolbarControl. | |
hWnd | Handle to the window associated with the ToolbarControl. | |
IconSize | The size in pixels of icons displayed on the ToolbarControl. | |
ItemAppearance | The appearance of the items on the ToolbarControl. | |
ItemAppearance | The appearance of the items on the ToolbarControl. | |
KeyIntercept | A property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values. | |
KeyIntercept | A property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values. | |
LargeIcons | Indicates if large icons are shown on all items on the ToolbarControl. | |
LargeIcons | Indicates if large icons are shown on all items on the ToolbarControl. | |
LoadItems | Loads items into the ToolbarControl from a previously saved stream. | |
MenuTracking | Indicates if menu tracking is enabled on the ToolbarControl. | |
MenuTracking | Indicates if menu tracking is enabled on the ToolbarControl. | |
MouseIcon | Custom mouse icon used if MousePointer is 99. | |
MouseIcon | Custom mouse icon used if MousePointer is 99. | |
MousePointer | The mouse pointer displayed over the ToolbarControl. | |
MousePointer | The mouse pointer displayed over the ToolbarControl. | |
MoveItem | Moves an item from one index to another. | |
MoveItem | Moves an item from one index to another. | |
Object | A property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment. | |
Object | A property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment. | |
OperationStack | The operation stack used for undo and redo functionality. If present commands can use it to store operations. | |
OperationStack | The operation stack used for undo and redo functionality. If present commands can use it to store operations. | |
Orientation | Indicates if the ToolbarControl is horizontally or vertically aligned. | |
Remove | Removes the item at the specified index from the ToolbarControl. | |
Remove | Removes the item at the specified index from the ToolbarControl. | |
RemoveAll | Removes all items from the ToolbarControl. | |
RemoveAll | Removes all items from the ToolbarControl. | |
SaveItems | Saves the ToolbarControl items into a stream. | |
SetBuddyControl | Sets a control to be a buddy of the toolbar, this control must support IToolbarBuddy. | |
SetBuddyControl | Sets a control to be a buddy of the toolbar, this control must support IToolbarBuddy. | |
ShowHiddenItems | Indicates if the ToolbarControl has a hidden items menu containing items currently not visible. | |
TextAlignment | The caption placement for all items on the ToolbarControl. | |
TextAlignment | The caption placement for all items on the ToolbarControl. | |
ThemedDrawing | Indicates if the ToolbarControl uses themed drawing. | |
ToolTips | Indicates if the items tooltips are shown. | |
ToolTips | Indicates if the items tooltips are shown. | |
Transparent | Indicates if the ToolbarControl has a transparent background. | |
Update | Updates the enabled state of the specified item or all items if an index of -1 is specified. Specify fullUpdate to update the group, group spacing, style and bitmap properties. | |
Update | Updates the enabled state of the specified item or all items if an index of -1 is specified. Specify fullUpdate to update the group, group spacing, style and bitmap properties. | |
UpdateInterval | The frequency in millisecs that update method is called on the ToolbarControl. | |
UpdateInterval | The frequency in millisecs that update method is called on the ToolbarControl. |
CoClasses and Classes | Description |
---|---|
ToolbarControl | Esri ToolbarControl |
When querying interface to IToolbarControl2 in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.
IToolbarControl2 toolbarControl=axToolbarControl1.Object as IToolbarControl2;
When querying interface to IToolbarControl2 in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.
Dim toolbarControl As IToolbarControl2=AxToolbarControl1.Object