MenuItemStyleCollection.Insert(Int32, MenuItemStyle) 方法
定义
将指定的 MenuItemStyle 对象插入集合中指定的索引位置。Inserts the specified MenuItemStyle object into the collection at the specified index location.
public:
void Insert(int index, System::Web::UI::WebControls::MenuItemStyle ^ style);
public void Insert (int index, System.Web.UI.WebControls.MenuItemStyle style);
member this.Insert : int * System.Web.UI.WebControls.MenuItemStyle -> unit
Public Sub Insert (index As Integer, style As MenuItemStyle)
参数
- index
- Int32
要插入 MenuItemStyle 对象的从零开始的索引位置。The zero-based index location at which to insert the MenuItemStyle.
- style
- MenuItemStyle
要插入的 MenuItemStyle。The MenuItemStyle to insert.
注解
使用 Insert 方法将指定的对象插入 MenuItemStyle 到集合中的指定的从零开始的索引处。Use the Insert method to insert the specified MenuItemStyle object into the collection at the specified zero-based index.
作为替代方法,可以 MenuItemStyle 使用方法将对象追加到集合的末尾 Add 。As an alternative, you can append a MenuItemStyle object to the end of the collection using the Add method.