Edit

Share via


Control.TemplateControl Property

Definition

Gets or sets a reference to the template that contains this control.

[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.TemplateControl TemplateControl { get; set; }

Property Value

The TemplateControl instance that contains this control.

Attributes

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

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1