TemplateDefinition Members

Provides properties and methods that define a template element in a Web server control at design time.

The following tables list the members exposed by the TemplateDefinition type.

  Name Description
Public method TemplateDefinition Overloaded. Initializes a new instance of the TemplateDefinition class.
Top

  Name Description
Public property AllowEditing Retrieves a value indicating whether the template should allow editing of its contents.
Public property Content Gets or sets the HTML markup representing the content of the template.
Public property Designer  Gets the associated designer component.(inherited from DesignerObject)
Public property Name  Gets the name of the object.(inherited from DesignerObject)
Public property Properties  Gets the object's properties.(inherited from DesignerObject)
Public property 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.
Public property Style Retrieves the style that should be applied to the template as set in the TemplateDefinition constructor. This property is read-only.
Public property SupportsDataBinding Retrieves or sets a value indicating whether the template supports data binding.
Public property TemplatedObject Retrieves the component in which the template resides. This property is read-only.
Public property TemplatePropertyName Retrieves the property name for the template that the design host should display in the Properties list.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetService  Gets a service from the design host, as identified by the provided type. (inherited from DesignerObject)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show: