TemplateBuilder TemplateBuilder TemplateBuilder TemplateBuilder Class

Definición

Proporciona compatibilidad con el analizador de páginas al crear una plantilla y los controles secundarios que contiene.Supports the page parser in building a template and the child controls it contains.

public ref class TemplateBuilder : System::Web::UI::ControlBuilder, System::Web::UI::ITemplate
public class TemplateBuilder : System.Web.UI.ControlBuilder, System.Web.UI.ITemplate
type TemplateBuilder = class
    inherit ControlBuilder
    interface ITemplate
Public Class TemplateBuilder
Inherits ControlBuilder
Implements ITemplate
Herencia
TemplateBuilderTemplateBuilderTemplateBuilderTemplateBuilder
Derivado
Implementaciones

Comentarios

Para utilizar una clase TemplateBuilder personalizada para un control, cree un personalizado ControlBuilder para el control y, a continuación, devuelva el control GetChildControlType personalizado TemplateBuilder desde el método.To use a custom TemplateBuilder class for a control, create a custom ControlBuilder for the control, and then return the custom TemplateBuilder control from the GetChildControlType method.

Constructores

TemplateBuilder() TemplateBuilder() TemplateBuilder() TemplateBuilder()

Inicializa una nueva instancia de la clase TemplateBuilder.Initializes a new instance of the TemplateBuilder class.

Propiedades

BindingContainerBuilder BindingContainerBuilder BindingContainerBuilder BindingContainerBuilder

Obtiene el generador de controles que corresponde al contenedor de enlace para el control que este generador crea.Gets the control builder that corresponds to the binding container for the control that this builder creates.

(Inherited from ControlBuilder)
BindingContainerType BindingContainerType BindingContainerType BindingContainerType

Obtiene el tipo de contenedor de enlace para el control que crea este generador.Gets the type of the binding container for the control that this builder creates.

(Inherited from ControlBuilder)
ComplexPropertyEntries ComplexPropertyEntries ComplexPropertyEntries ComplexPropertyEntries

Obtiene una colección de entradas de propiedad complejas.Gets a collection of complex property entries.

(Inherited from ControlBuilder)
ControlType ControlType ControlType ControlType

Obtiene el Type del control que se va a crear.Gets the Type for the control to be created.

(Inherited from ControlBuilder)
CurrentFilterResolutionService CurrentFilterResolutionService CurrentFilterResolutionService CurrentFilterResolutionService

Obtiene un objeto IFilterResolutionService utilizado para administrar servicios relacionados con filtros de dispositivos cuando se analizan y se conservan controles en el diseñador.Gets an IFilterResolutionService object that is used to manage device-filter related services when parsing and persisting controls in the designer.

(Inherited from ControlBuilder)
DeclareType DeclareType DeclareType DeclareType

Obtiene el tipo que utilizará la generación de código para declarar el control.Gets the type that will be used by code generation to declare the control.

(Inherited from ControlBuilder)
FChildrenAsProperties FChildrenAsProperties FChildrenAsProperties FChildrenAsProperties

Obtiene un valor que determina si el control tiene un objeto ParseChildrenAttribute con ChildrenAsProperties establecida en true.Gets a value that determines whether the control has a ParseChildrenAttribute with ChildrenAsProperties set to true.

(Inherited from ControlBuilder)
FIsNonParserAccessor FIsNonParserAccessor FIsNonParserAccessor FIsNonParserAccessor

Obtiene un valor que determina si el control implementa la interfaz de IParserAccessor.Gets a value that determines whether the control implements the IParserAccessor interface.

(Inherited from ControlBuilder)
HasAspCode HasAspCode HasAspCode HasAspCode

Obtiene un valor que indica si el control contiene bloques de código.Gets a value indicating whether the control contains any code blocks.

(Inherited from ControlBuilder)
ID ID ID ID

Obtiene o establece la propiedad de identificador del control que se va a crear.Gets or sets the identifier property for the control to be built.

(Inherited from ControlBuilder)
InDesigner InDesigner InDesigner InDesigner

Devuelve un valor que indica si se está ejecutando ControlBuilder en el diseñador.Returns whether the ControlBuilder is running in the designer.

(Inherited from ControlBuilder)
InPageTheme InPageTheme InPageTheme InPageTheme

Obtiene un valor booleano que indica si este objeto ControlBuilder se utiliza para generar temas de página.Gets a Boolean value indicating whether this ControlBuilder object is used to generate page themes.

(Inherited from ControlBuilder)
ItemType ItemType ItemType ItemType

Obtiene el tipo establecido en el contenedor de enlace.Gets the type set on the binding container.

(Inherited from ControlBuilder)
Localize Localize Localize Localize

Obtiene un valor booleano que indica si se adapta el control creado por el objeto ControlBuilder.Gets a Boolean value indicating whether the control that is created by this ControlBuilder object is localized.

(Inherited from ControlBuilder)
NamingContainerType NamingContainerType NamingContainerType NamingContainerType

Obtiene el tipo de contenedor de nomenclatura para el control que este generador crea.Gets the type of the naming container for the control that this builder creates.

(Inherited from ControlBuilder)
PageVirtualPath PageVirtualPath PageVirtualPath PageVirtualPath

Obtiene la ruta de acceso virtual de una página que se va a compilar por esta instancia de ControlBuilder.Gets the virtual path of a page to be built by this ControlBuilder instance.

(Inherited from ControlBuilder)
Parser Parser Parser Parser

Obtiene el objeto TemplateParser responsable de analizar el control.Gets the TemplateParser responsible for parsing the control.

(Inherited from ControlBuilder)
ServiceProvider ServiceProvider ServiceProvider ServiceProvider

Obtiene el objeto de servicio para el objeto ControlBuilder.Gets the service object for this ControlBuilder object.

(Inherited from ControlBuilder)
SubBuilders SubBuilders SubBuilders SubBuilders

Obtiene una lista de los objetos ControlBuilder secundarios para este objeto ControlBuilder.Gets a list of child ControlBuilder objects for this ControlBuilder object.

(Inherited from ControlBuilder)
TagName TagName TagName TagName

Obtiene el nombre de etiqueta del control que se va a crear.Gets the tag name for the control to be built.

(Inherited from ControlBuilder)
TemplatePropertyEntries TemplatePropertyEntries TemplatePropertyEntries TemplatePropertyEntries

Obtiene una colección de entradas de propiedad de plantilla.Gets a collection of template property entries.

(Inherited from ControlBuilder)
Text Text Text Text

Obtiene o establece el texto incluido entre las etiquetas de apertura y cierre de la plantilla.Gets or sets the text between the opening and closing tags of the template.

ThemeResolutionService ThemeResolutionService ThemeResolutionService ThemeResolutionService

Obtiene un objeto IThemeResolutionService utilizado en tiempo de diseño para administrar temas y máscaras de controles.Gets an IThemeResolutionService object that is used in design time to manage control themes and skins.

(Inherited from ControlBuilder)

Métodos

AllowWhitespaceLiterals() AllowWhitespaceLiterals() AllowWhitespaceLiterals() AllowWhitespaceLiterals()

Determina si se permiten literales de espacio en blanco en el contenido entre las etiquetas de cierre y apertura de un control.Determines whether white space literals are permitted in the content between a control's opening and closing tags. El marco de trabajo de la página ASP.NET llama a este método.This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
AppendLiteralString(String) AppendLiteralString(String) AppendLiteralString(String) AppendLiteralString(String)

Agrega el contenido literal especificado a un control.Adds the specified literal content to a control. El marco de trabajo de la página ASP.NET llama a este método.This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
AppendSubBuilder(ControlBuilder) AppendSubBuilder(ControlBuilder) AppendSubBuilder(ControlBuilder) AppendSubBuilder(ControlBuilder)

Agrega generadores al objeto ControlBuilder para todos los controles secundarios que pertenecen al control contenedor.Adds builders to the ControlBuilder object for any child controls that belong to the container control.

(Inherited from ControlBuilder)
BuildObject() BuildObject() BuildObject() BuildObject()

Se utiliza durante el tiempo de diseño para crear la plantilla y sus controles secundarios.Used during design time to build the template and its child controls.

CloseControl() CloseControl() CloseControl() CloseControl()

Llamado por el analizador para informar al generador de que el análisis de las etiquetas de apertura y cierre del control ha finalizado.Called by the parser to inform the builder that the parsing of the control's opening and closing tags is complete.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetChildControlType(String, IDictionary) GetChildControlType(String, IDictionary) GetChildControlType(String, IDictionary) GetChildControlType(String, IDictionary)

Obtiene el valor Type del tipo de control correspondiente a una etiqueta secundaria.Obtains the Type of the control type corresponding to a child tag. El marco de trabajo de la página ASP.NET llama a este método.This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetObjectPersistData() GetObjectPersistData() GetObjectPersistData() GetObjectPersistData()

Crea el objeto ObjectPersistData para este objeto ControlBuilder.Creates the ObjectPersistData object for this ControlBuilder object.

(Inherited from ControlBuilder)
GetResourceKey() GetResourceKey() GetResourceKey() GetResourceKey()

Recupera la clave de recurso para el objeto ControlBuilder.Retrieves the resource key for this ControlBuilder object.

(Inherited from ControlBuilder)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
HasBody() HasBody() HasBody() HasBody()

Determina si un control tiene etiquetas de apertura y cierre.Determines if a control has both an opening and closing tag. El marco de trabajo de la página ASP.NET llama a este método.This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
HtmlDecodeLiterals() HtmlDecodeLiterals() HtmlDecodeLiterals() HtmlDecodeLiterals()

Determina si la cadena literal de un control HTML debe descodificarse en HTML.Determines whether the literal string of an HTML control must be HTML decoded. El marco de trabajo de la página ASP.NET llama a este método.This method is called by the ASP.NET page framework.

(Inherited from ControlBuilder)
Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary) Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary) Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary) Init(TemplateParser, ControlBuilder, Type, String, String, IDictionary)

Inicializa el generador de plantillas cuando se realiza una solicitud Web.Initializes the template builder when a Web request is made.

InstantiateIn(Control) InstantiateIn(Control) InstantiateIn(Control) InstantiateIn(Control)

Define el objeto Control al que pertenecen las plantillas y los controles secundarios en tiempo de diseño.Defines the Control object that child controls and templates belong to in design time.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
NeedsTagInnerText() NeedsTagInnerText() NeedsTagInnerText() NeedsTagInnerText()

Determina si el generador de controles necesita obtener su texto interno.Determines if the control builder needs to get its inner text.

OnAppendToParentBuilder(ControlBuilder) OnAppendToParentBuilder(ControlBuilder) OnAppendToParentBuilder(ControlBuilder) OnAppendToParentBuilder(ControlBuilder)

Notifica el ControlBuilder que se agrega a un generador de controles principales.Notifies the ControlBuilder that it is being added to a parent control builder.

(Inherited from ControlBuilder)
ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod)

Permite a los generadores de controles personalizados el acceso al objeto CodeDom (Code Document Object Model) generado y la inserción y modificación del código durante el proceso de análisis y compilación de controles.Enables custom control builders to access the generated Code Document Object Model (CodeDom) and insert and modify code during the process of parsing and building controls.

(Inherited from ControlBuilder)
SetResourceKey(String) SetResourceKey(String) SetResourceKey(String) SetResourceKey(String)

Establece la clave de recurso para el objeto ControlBuilder.Sets the resource key for this ControlBuilder object.

(Inherited from ControlBuilder)
SetServiceProvider(IServiceProvider) SetServiceProvider(IServiceProvider) SetServiceProvider(IServiceProvider) SetServiceProvider(IServiceProvider)

Establece el objeto de servicio para el objeto ControlBuilder.Sets the service object for this ControlBuilder object.

(Inherited from ControlBuilder)
SetTagInnerText(String) SetTagInnerText(String) SetTagInnerText(String) SetTagInnerText(String)

Guarda el texto interno de la etiqueta de plantilla.Saves the inner text of the template tag.

ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Se aplica a

Consulte también: