Menu.Controls 屬性

定義

取得 ControlCollection,其中包含 Menu 控制項的子控制項。Gets a ControlCollection that contains the child controls of the Menu control.

public:
 virtual property System::Web::UI::ControlCollection ^ Controls { System::Web::UI::ControlCollection ^ get(); };
public override System.Web.UI.ControlCollection Controls { get; }
member this.Controls : System.Web.UI.ControlCollection
Public Overrides ReadOnly Property Controls As ControlCollection

屬性值

ControlCollection

ControlCollection,包含子控制項。A ControlCollection that contains the child controls

備註

Controls屬性可讓您以程式設計方式存取控制項的 ControlCollection 類別實例 MenuThe Controls property allows you programmatic access to the instance of the ControlCollection class for the Menu control. 您可以將控制項加入至集合、從集合中移除控制項,或是逐一查看集合中的伺服器控制項。You can add controls to the collection, remove controls from the collection, or iterate through the server controls in the collection.

適用於