This documentation is archived and is not being maintained.
TemplateDefinition Members
Visual Studio 2008
Provides properties and methods that define a template element in a Web server control at design time.
The TemplateDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
|
TemplateDefinition | Overloaded. Initializes a new instance of the TemplateDefinition class. |
| Name | Description | |
|---|---|---|
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetService | Gets a service from the design host, as identified by the provided type. (Inherited from DesignerObject.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AllowEditing | Gets a value that indicates whether the template should enable editing of its contents. |
|
Content | Gets or sets the HTML markup representing the content of the template. |
|
Designer | Gets the associated designer component. (Inherited from DesignerObject.) |
|
Name | Gets the name of the object. (Inherited from DesignerObject.) |
|
Properties | Gets the object's properties. (Inherited from DesignerObject.) |
|
ServerControlsOnly | Retrieves a value indicating whether the template should limit content to Web server controls, as set in the TemplateDefinition constructor. This property is read-only. |
|
Style | Retrieves the style that should be applied to the template as set in the TemplateDefinition constructor. This property is read-only. |
|
SupportsDataBinding | Retrieves or sets a value indicating whether the template supports data binding. |
|
TemplatedObject | Retrieves the component in which the template resides. This property is read-only. |
|
TemplatePropertyName | Retrieves the property name for the template that the design host should display in the property grid. |
| Name | Description | |
|---|---|---|
|
IServiceProvider::GetService | For a description of this member, see IServiceProvider::GetService. (Inherited from DesignerObject.) |
Show: