Removes the specified System.Web.UI.WebControls.MenuItemStyle object from the collection.
- style
The System.Web.UI.WebControls.MenuItemStyle to remove.
Use the MenuItemStyleCollection.Remove(MenuItemStyle) method to remove the specified System.Web.UI.WebControls.MenuItemStyle object from the collection. All items that follow that menu item style are then moved up to fill the vacant position. The indexes of the moved items are also updated.
As an alternative, you can remove a System.Web.UI.WebControls.MenuItemStyle object at a specific index by using the MenuItemStyleCollection.RemoveAt(int) method.