MenuItemStyleCollection.Remove(MenuItemStyle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除指定的 MenuItemStyle 物件。
public:
void Remove(System::Web::UI::WebControls::MenuItemStyle ^ style);
public void Remove(System.Web.UI.WebControls.MenuItemStyle style);
member this.Remove : System.Web.UI.WebControls.MenuItemStyle -> unit
Public Sub Remove (style As MenuItemStyle)
參數
- style
- MenuItemStyle
MenuItemStyle要移除。
備註
使用該 Remove 方法將指定的 MenuItemStyle 物件從集合中移除。 所有符合該選單項目風格的項目都會被往上移動,填補空缺位置。 移動項目的索引也會更新。
作為替代方案,你可以使用該MenuItemStyle方法移除RemoveAt特定索引的物件。