Udostępnij przez


TemplatedControlDesigner.GetTemplatePropertyParentType(String) Metoda

Definicja

Przestroga

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

Pobiera typ elementu nadrzędnego właściwości szablonu.

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

Nazwa szablonu zwracającego typ elementu nadrzędnego.

Zwraca

Typ obiektu, który ma właściwość szablonu.

Atrybuty

Uwagi

Uwaga

Metoda GetTemplatePropertyParentType jest przestarzała. Templates Użyj właściwości TemplateGroups elementów kolekcji, aby zbadać metadane szablonu w projektancie dla kontrolek opartych na szablonach.

Dotyczy

Zobacz też