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ého objektu šablony vlastnost.

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 který se vrátí typ nadřazeného objektu.

Návraty

Typ objektu, který má vlastnost šablony.

Atributy

Poznámky

Poznámka

Metoda GetTemplatePropertyParentType je zastaralá. Templates Pomocí vlastnosti elementů TemplateGroups kolekce můžete zkoumat metadata šablony v návrháři pro ovládací prvky založené na šablonách.

Platí pro

Viz také