MenuItemStyleCollection.Item[Int32] 属性

定义

获取集合中指定索引处的 MenuItemStyle 对象。Gets the MenuItemStyle object at the specified index from the collection.

public:
 property System::Web::UI::WebControls::MenuItemStyle ^ default[int] { System::Web::UI::WebControls::MenuItemStyle ^ get(int i); void set(int i, System::Web::UI::WebControls::MenuItemStyle ^ value); };
public System.Web.UI.WebControls.MenuItemStyle this[int i] { get; set; }
member this.Item(int) : System.Web.UI.WebControls.MenuItemStyle with get, set
Default Public Property Item(i As Integer) As MenuItemStyle

参数

i
Int32

要检索的 MenuItemStyle 的从零开始的索引。The zero-based index of the MenuItemStyle to retrieve.

属性值

MenuItemStyle

位于集合中指定索引处的 MenuItemStyleThe MenuItemStyle at the specified index in the collection.

注解

使用数组表示法,使用此索引器访问 MenuItemStyle 集合中指定索引处的对象。Use this indexer to access a MenuItemStyle object from the collection at the specified index using array notation. 使用索引器可以直接访问、修改或替换 MenuItemStyle 集合中的对象。The indexer allows you to access, modify, or replace a MenuItemStyle object in the collection directly.

适用于

另请参阅