Dart.PowerWEB.TextBox Namespace > ToolbarItemCollection Class > IndexOf Method : IndexOf(ToolbarItemType) Method |
Searches the collection for a BaseToolbarItem based on the Type property and returns the zero-based index of the first occurrence within the collection.
[Visual Basic]
Overloads Public Function IndexOf( _
ByVal type As ToolbarItemType _
) As Integer
[C#]
public int IndexOf(
ToolbarItemType type
);
[C++]
public: int IndexOf(
ToolbarItemType type
)
[C++/CLI]
public:
int IndexOf(
ToolbarItemType type
)
The zero-based index of the object if an object with a Type property matching type is found; -1 if not found.
The collection is searched forward starting at the first element and ending at the last element. The Type property of each BaseToolbarItem is compared against type.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
ToolbarItemCollection Class | ToolbarItemCollection Members | Overload List
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.