TemplatedControlDesigner.GetTemplatePropertyParentType(String) Method

Definition

Caution

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

Gets the type of the parent of the template property.

C#
public virtual Type GetTemplatePropertyParentType(string templateName);
C#
[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);

Parameters

templateName
String

The name of the template to return the type of the parent for.

Returns

The type of the object that has the template property.

Attributes

Remarks

Напомена

The GetTemplatePropertyParentType method is obsolete. Use the Templates property of the TemplateGroups collection elements to examine template metadata within a designer for template-based controls.

Applies to

Производ Верзије (Застарело)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

See also