Control.TemplateControl 屬性

定義

取得或設定包含了此控制項之樣板的參考。Gets or sets a reference to the template that contains this control.

public:
 property System::Web::UI::TemplateControl ^ TemplateControl { System::Web::UI::TemplateControl ^ get(); void set(System::Web::UI::TemplateControl ^ value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.TemplateControl TemplateControl { get; set; }
member this.TemplateControl : System.Web.UI.TemplateControl with get, set
Public Property TemplateControl As TemplateControl

屬性值

TemplateControl 執行個體,包含這個控制項。The TemplateControl instance that contains this control.

屬性

備註

Control 實例是控制項範本的一部分時,TemplateControl 屬性會包含包含控制項的參考。When a Control instance is part of a control template, the TemplateControl property contains a reference to the containing control. 如需詳細資訊,請參閱 System.Web.UI.TemplateControl 檔。For more information, see the System.Web.UI.TemplateControl documentation.

適用於