Bagikan melalui


TemplatedControlDesigner.GetTemplatePropertyParentType(String) Metode

Definisi

Perhatian

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

Mendapatkan jenis induk properti templat.

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

Parameter

templateName
String

Nama templat untuk mengembalikan jenis induknya.

Mengembalikan

Jenis objek yang memiliki properti templat.

Atribut

Keterangan

Catatan

Metode GetTemplatePropertyParentType ini usang. Templates Gunakan properti TemplateGroups elemen koleksi untuk memeriksa metadata templat dalam perancang untuk kontrol berbasis templat.

Berlaku untuk

Lihat juga