MenuItemStyleCollection.IndexOf(MenuItemStyle) Method
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the index of the specified MenuItemStyle object in the collection.
public:
int IndexOf(System::Web::UI::WebControls::MenuItemStyle ^ style);
public int IndexOf(System.Web.UI.WebControls.MenuItemStyle style);
member this.IndexOf : System.Web.UI.WebControls.MenuItemStyle -> int
Public Function IndexOf (style As MenuItemStyle) As Integer
- style
- MenuItemStyle
The MenuItemStyle to locate.
The zero-based index of the first occurrence of the specified MenuItemStyle, if found; otherwise, -1.
Use the IndexOf method to determine the zero-based index of the specified MenuItemStyle object in the collection. If the node is not in the collection, the method returns -1.
Note
If the specified MenuItemStyle object appears multiple times in the collection, the index of the first occurrence is returned.
Applies to
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: