TemplatedControlDesigner.GetTemplatePropertyParentType(String) Método

Definição

Atenção

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

Obtém o tipo de pai da propriedade do modelo.

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

O nome do modelo para devolver o tipo do pai para.

Devoluções

O tipo do objeto que tem a propriedade template.

Atributos

Observações

Note

O GetTemplatePropertyParentType método está obsoleto. Use a Templates propriedade dos TemplateGroups elementos da coleção para examinar metadados template dentro de um designer para controlos baseados em templates.

Aplica-se a

Ver também