TemplatedControlDesigner.GetTemplatePropertyParentType(String) Methode

Definitie

Let op

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

Hiermee haalt u het type van het bovenliggende element van de sjablooneigenschap op.

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

Parameters

templateName
String

De naam van de sjabloon waarvoor het type van het bovenliggende item moet worden geretourneerd.

Retouren

Het type object met de sjablooneigenschap.

Kenmerken

Opmerkingen

Note

De GetTemplatePropertyParentType methode is verouderd. Gebruik de Templates eigenschap van de TemplateGroups verzamelingselementen om metagegevens van sjablonen in een ontwerpfunctie te onderzoeken voor besturingselementen op basis van sjablonen.

Van toepassing op

Zie ook