Control.TemplateControl Control.TemplateControl Control.TemplateControl Control.TemplateControl Property

Definition

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

Property Value

Remarks

When a Control instance is part of a control template, the TemplateControl property contains a reference to the containing control. For more information, see the System.Web.UI.TemplateControl documentation.

Applies to