Description
Use the Item
property to get access to individual toolbar items. This property retrieves information only about the subitems of the toolbar item to which the WinToolBarsItemCollection object corresponds. That is, from the root node you can get any item of the toolbar, while from a second-level item, its child items (immediate or not) are only accessible.
Declaration
TestObj.Item(Item)
Read-Only Property | A InfraWinToolbarsItem object. |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Item | [in] | Required | Variant |
Applies To
The property is applied to the following object:
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Parameters
The property has the following parameter:
Item
Specifies the desired item. The Item parameter can have one of the following values:
- The item’s index within the collection. Index is zero-based, that is it starts from 0. The index of the last item is
Count-1.
-
The item’s caption or caption mask.
The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
- The path to the item, in case the desired item is a child item of the given collection. Each item in the path can be specified by its caption or index. Indexes must be enclosed in brackets - [ and ]. Individual captions and indexes in the path must be separated with pipeline characters ( | ).
Note: If the item caption includes a bracket or a pipeline character, address the item by its index or with the question mark wildcard.
Property Value
A WinToolBarsItem
object.
Remarks
If you use Python or DelphiScript, you should enclose the parameter of the Item
property in square brackets: Item[Item]
.
See Also
InfragisticsWinToolBarsItem Object
wItems Property (Specific to InfragisticsWinToolBars Controls)
Infragistics UltraToolbarsDockArea