Compartir a través de


TemplatedControlDesigner.GetTemplatePropertyParentType(String) Método

Definición

Precaución

Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

Obtiene el tipo del elemento principal de la propiedad de la plantilla.

public:
 virtual Type ^ GetTemplatePropertyParentType(System::String ^ templateName);
public virtual Type GetTemplatePropertyParentType (string templateName);
[System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public virtual Type GetTemplatePropertyParentType (string templateName);
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
[<System.Obsolete("Use of this method is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member GetTemplatePropertyParentType : string -> Type
override this.GetTemplatePropertyParentType : string -> Type
Public Overridable Function GetTemplatePropertyParentType (templateName As String) As Type

Parámetros

templateName
String

Nombre de la plantilla para la que se va a devolver el tipo del elemento principal.

Devoluciones

Tipo del objeto que tiene la propiedad de la plantilla.

Atributos

Comentarios

Nota

El GetTemplatePropertyParentType método está obsoleto. Utilice la Templates propiedad de los elementos de la TemplateGroups colección para examinar los metadatos de plantilla dentro de un diseñador para los controles basados en plantillas.

Se aplica a

Consulte también