CustomTypeDescriptor Construtores
Definição
Inicializa uma nova instância da classe CustomTypeDescriptor.Initializes a new instance of the CustomTypeDescriptor class.
Sobrecargas
| CustomTypeDescriptor() |
Inicializa uma nova instância da classe CustomTypeDescriptor.Initializes a new instance of the CustomTypeDescriptor class. |
| CustomTypeDescriptor(ICustomTypeDescriptor) |
Inicializa uma nova instância da classe CustomTypeDescriptor usando um descritor de tipo pai personalizado.Initializes a new instance of the CustomTypeDescriptor class using a parent custom type descriptor. |
CustomTypeDescriptor()
Inicializa uma nova instância da classe CustomTypeDescriptor.Initializes a new instance of the CustomTypeDescriptor class.
protected:
CustomTypeDescriptor();
protected CustomTypeDescriptor ();
Protected Sub New ()
Comentários
Esse construtor é equivalente a chamar o outro CustomTypeDescriptor.CustomTypeDescriptor Construtor com um parâmetro que é null .This constructor is equivalent to calling the other CustomTypeDescriptor.CustomTypeDescriptor constructor with a parameter that is null.
Todos os métodos de um CustomTypeDescriptor criado com esse construtor retornarão valores padrão.All methods of a CustomTypeDescriptor created with this constructor will return default values.
Confira também
Aplica-se a
CustomTypeDescriptor(ICustomTypeDescriptor)
Inicializa uma nova instância da classe CustomTypeDescriptor usando um descritor de tipo pai personalizado.Initializes a new instance of the CustomTypeDescriptor class using a parent custom type descriptor.
protected:
CustomTypeDescriptor(System::ComponentModel::ICustomTypeDescriptor ^ parent);
protected CustomTypeDescriptor (System.ComponentModel.ICustomTypeDescriptor parent);
new System.ComponentModel.CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor -> System.ComponentModel.CustomTypeDescriptor
Protected Sub New (parent As ICustomTypeDescriptor)
Parâmetros
- parent
- ICustomTypeDescriptor
O descritor de tipo personalizado pai.The parent custom type descriptor.
Comentários
Se o parent parâmetro for null , todos os CustomTypeDescriptor métodos retornarão valores padrão.If the parent parameter is null, all CustomTypeDescriptor methods will return default values. Caso contrário, todos os CustomTypeDescriptor métodos serão delegados para os métodos de parent .Otherwise, all CustomTypeDescriptor methods will delegate to the methods of parent.
A maioria dos CustomTypeDescriptor métodos retorna null por padrão.Most CustomTypeDescriptor methods return null by default. A tabela a seguir mostra os valores de retorno para os métodos que não retornam null por padrão.The following table shows the return values for the methods that do not return null by default.
| MétodoMethod | Valor de retorno padrãoDefault return value |
|---|---|
| GetAttributes | Uma coleção de atributos vazia ( AttributeCollection.Empty ).An empty attribute collection (AttributeCollection.Empty). |
| GetConverter | A TypeConverter instância padrão.The default TypeConverter instance. |
| GetEvents | Uma coleção de eventos vazia ( EventDescriptorCollection.Empty ).An empty events collection (EventDescriptorCollection.Empty). |
| GetProperties | Uma coleção de propriedades vazia ( PropertyDescriptorCollection.Empty ).An empty property collection (PropertyDescriptorCollection.Empty). |