共用方式為


TemplatedControlDesigner.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

取得樣板屬性的父代型別。

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

參數

templateName
String

要傳回父代型別的樣板名稱。

傳回

具有樣板屬性的物件型別。

屬性

備註

注意

方法 GetTemplatePropertyParentType 已過時。 Templates使用集合項目的 屬性TemplateGroups來檢查範本型控件的設計工具內的範本元數據。

適用於

另請參閱