MenuItemTemplateContainer.ItemIndex 屬性

定義

取得與容器關聯的功能表項目索引。Gets the index of the menu item associated with the container.

public:
 property int ItemIndex { int get(); };
public int ItemIndex { get; }
member this.ItemIndex : int
Public ReadOnly Property ItemIndex As Integer

屬性值

Int32

與容器關聯的功能表項目索引。The index of the menu item associated with the container.

備註

ItemIndex 可以使用屬性來判斷與容器相關聯之功能表項目的索引。Use the ItemIndex property to determine the index of the menu item associated with the container.

注意

這個屬性主要由控制項開發人員在擴充類別時使用 MenuThis property is used primarily by control developers when extending the Menu class.

適用於

另請參閱