MenuItemStyleCollection.IndexOf(MenuItemStyle) Method
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
Parameters
- style
- MenuItemStyle
The MenuItemStyle to locate.
Returns
The zero-based index of the first occurrence of the specified MenuItemStyle, if found; otherwise, -1.
Remarks
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
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈