Share via


DataGridDesigner.GetTemplatePropertyParentType(String) 方法

定义

注意

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

获取与指定模板的父级对应的 Type 对象。

public:
 override Type ^ GetTemplatePropertyParentType(System::String ^ templateName);
public override 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 override Type GetTemplatePropertyParentType (string templateName);
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")>]
override this.GetTemplatePropertyParentType : string -> Type
Public Overrides Function GetTemplatePropertyParentType (templateName As String) As Type

参数

templateName
String

模板的名称。

返回

与指定模板的父级对应的 Type

属性

注解

方法 GetTemplatePropertyParentType 已过时。 若要访问模板元数据,请参阅 TemplateDefinition

适用于

另请参阅