Determines whether the specified System.Web.UI.WebControls.MenuItemStyle object is in the collection.
- style
The System.Web.UI.WebControls.MenuItemStyle to find.
![]()
true if the specified System.Web.UI.WebControls.MenuItemStyle is contained in the collection; otherwise, false.
Use the MenuItemStyleCollection.Contains(MenuItemStyle) method to determine whether a System.Web.UI.WebControls.MenuItemStyle object is contained in the collection. This method is commonly used to test for the existence of a System.Web.UI.WebControls.MenuItemStyle object before performing a task, such as adding or removing a menu item style from the collection.