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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin