TemplatedControlDesigner.GetTemplatePropertyParentType(String) Metoda

Definice

Upozorně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

Získá typ nadřazené vlastnosti šablony.

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

Parametry

templateName
String

Název šablony pro vrácení typu nadřazeného objektu.

Návraty

Typ objektu, který má vlastnost šablony.

Atributy

Poznámky

Poznámka:

Metoda GetTemplatePropertyParentType je zastaralá. Templates Vlastnost elementů TemplateGroups kolekce slouží k prozkoumání metadat šablony v návrháři pro ovládací prvky založené na šablonách.

Platí pro

Viz také