Bewerken

Share via


TemplateDefinition Constructors

Definition

Initializes a new instance of the TemplateDefinition class.

Overloads

TemplateDefinition(ControlDesigner, String, Object, String)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, and property name.

TemplateDefinition(ControlDesigner, String, Object, String, Boolean)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, and whether to limit the template contents to Web server controls.

TemplateDefinition(ControlDesigner, String, Object, String, Style)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, and Style object.

TemplateDefinition(ControlDesigner, String, Object, String, Style, Boolean)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, Style object, and whether to limit content to Web server controls.

TemplateDefinition(ControlDesigner, String, Object, String)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, and property name.

public:
 TemplateDefinition(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name, System::Object ^ templatedObject, System::String ^ templatePropertyName);
public TemplateDefinition (System.Web.UI.Design.ControlDesigner designer, string name, object templatedObject, string templatePropertyName);
new System.Web.UI.Design.TemplateDefinition : System.Web.UI.Design.ControlDesigner * string * obj * string -> System.Web.UI.Design.TemplateDefinition
Public Sub New (designer As ControlDesigner, name As String, templatedObject As Object, templatePropertyName As String)

Parameters

designer
ControlDesigner

The parent ControlDesigner object.

name
String

The name of the template.

templatedObject
Object

The object that contains the template.

templatePropertyName
String

The property name that represents this template in the Properties list in the design host.

Exceptions

designer is null,

-or-

templatedObject is null.

See also

Applies to

TemplateDefinition(ControlDesigner, String, Object, String, Boolean)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, and whether to limit the template contents to Web server controls.

public:
 TemplateDefinition(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name, System::Object ^ templatedObject, System::String ^ templatePropertyName, bool serverControlsOnly);
public TemplateDefinition (System.Web.UI.Design.ControlDesigner designer, string name, object templatedObject, string templatePropertyName, bool serverControlsOnly);
new System.Web.UI.Design.TemplateDefinition : System.Web.UI.Design.ControlDesigner * string * obj * string * bool -> System.Web.UI.Design.TemplateDefinition
Public Sub New (designer As ControlDesigner, name As String, templatedObject As Object, templatePropertyName As String, serverControlsOnly As Boolean)

Parameters

designer
ControlDesigner

The parent ControlDesigner object.

name
String

The name of the template.

templatedObject
Object

The object that contains the template.

templatePropertyName
String

The property name that represents this template in the Properties list in the design host.

serverControlsOnly
Boolean

A Boolean value indicating whether the template content should allow only Web server controls.

Exceptions

designer is null,

-or-

templatedObject is null.

See also

Applies to

TemplateDefinition(ControlDesigner, String, Object, String, Style)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, and Style object.

public:
 TemplateDefinition(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name, System::Object ^ templatedObject, System::String ^ templatePropertyName, System::Web::UI::WebControls::Style ^ style);
public TemplateDefinition (System.Web.UI.Design.ControlDesigner designer, string name, object templatedObject, string templatePropertyName, System.Web.UI.WebControls.Style style);
new System.Web.UI.Design.TemplateDefinition : System.Web.UI.Design.ControlDesigner * string * obj * string * System.Web.UI.WebControls.Style -> System.Web.UI.Design.TemplateDefinition
Public Sub New (designer As ControlDesigner, name As String, templatedObject As Object, templatePropertyName As String, style As Style)

Parameters

designer
ControlDesigner

The parent ControlDesigner object.

name
String

The name of the template.

templatedObject
Object

The object that contains the template.

templatePropertyName
String

The property name that represents this template in the Properties list in the design host.

style
Style

A Style object to apply to each template.

Exceptions

designer is null,

-or-

templatedObject is null.

See also

Applies to

TemplateDefinition(ControlDesigner, String, Object, String, Style, Boolean)

Initializes a new instance of the TemplateDefinition class, using the provided designer, template name, template, property name, Style object, and whether to limit content to Web server controls.

public:
 TemplateDefinition(System::Web::UI::Design::ControlDesigner ^ designer, System::String ^ name, System::Object ^ templatedObject, System::String ^ templatePropertyName, System::Web::UI::WebControls::Style ^ style, bool serverControlsOnly);
public TemplateDefinition (System.Web.UI.Design.ControlDesigner designer, string name, object templatedObject, string templatePropertyName, System.Web.UI.WebControls.Style style, bool serverControlsOnly);
new System.Web.UI.Design.TemplateDefinition : System.Web.UI.Design.ControlDesigner * string * obj * string * System.Web.UI.WebControls.Style * bool -> System.Web.UI.Design.TemplateDefinition
Public Sub New (designer As ControlDesigner, name As String, templatedObject As Object, templatePropertyName As String, style As Style, serverControlsOnly As Boolean)

Parameters

designer
ControlDesigner

The parent ControlDesigner object.

name
String

The name of the template.

templatedObject
Object

The object that contains the template.

templatePropertyName
String

The property name that represents this template in the Properties list in the design host.

style
Style

A Style object to apply to each template.

serverControlsOnly
Boolean

A Boolean value indicating whether the template should limit content to Web server controls.

Exceptions

designer is null,

-or-

templatedObject is null.

See also

Applies to