IToolbar
What it does
A collection of IToolbarButton objects. Represents a toolbar.
Methods
Definition | Description |
---|---|
AppendButton( commandId : TCommandID, text : string ) : IToolbarButton |
Appends a toolbar item with the command identifier commandId and the text Text at the end of the toolbar. Returns the IToolbarButton object of the corresponding element. Any command identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the Text parameter will be ignored. |
Delete( Index : int ) | Deletes an item by its index in the collection. |
Find( commandId : TCommandID ) : int | Searches for the index of the button with a specified identifier in the collection. |
InsertButton( index : int, commandId : TCommandID, text : string ) : IToolbarButton |
Inserts a toolbar item with the command identifier commandId and the text Text in the position Index of the toolbar. Returns the IToolbarButton object of the corresponding element. Any command identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the Text parameter will be ignored. |
Reset() | Resets all changes and restores the original view of the toolbar. |
Properties
Name | Type | Access | Description |
---|---|---|---|
Name | string | Read-only | The name of the toolbar |
Type | TCommandBarType | Read-only | The type of the toolbar |
Visible | bool | Read/write | Specifies whether the toolbar is visible |
4/12/2024 6:16:02 PM