MenuItemTemplateContainer.DataItem 屬性

定義

取得或設定與容器關聯的功能表項目。Gets or sets the menu item associated with the container.

public:
 property System::Object ^ DataItem { System::Object ^ get(); void set(System::Object ^ value); };
public object DataItem { get; set; }
member this.DataItem : obj with get, set
Public Property DataItem As Object

屬性值

Object

MenuItem,表示與容器關聯的功能表項目。A MenuItem that represents the menu item associated with the container.

備註

DataItem 可以使用屬性來指定或判斷與容器相關聯的功能表項目。Use the DataItem property to specify or determine the menu item associated with the container.

注意

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

適用於

另請參閱