C# Класс System.ComponentModel.ReferenceConverter

Наследование: TypeConverter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Gets a value indicating whether this converter can convert an object in the given source type to a reference object using the specified context.

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object

Converts the given object to the reference type.

ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object

Converts the given value object to the reference type using the specified context and arguments.

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

Gets a collection of standard values for the reference data type.

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

Gets a value indicating whether the list of standard values returned from is an exclusive list.

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Gets a value indicating whether this object supports a standard set of values that can be picked from a list.

ReferenceConverter ( Type type ) : Microsoft.Win32

Initializes a new instance of the class.

Защищенные методы

Метод Описание
IsValueAllowed ( ITypeDescriptorContext context, object value ) : bool

Gets a value indicating whether a particular value can be added to the standard values collection.

Описание методов

CanConvertFrom() публичный Метод

Gets a value indicating whether this converter can convert an object in the given source type to a reference object using the specified context.

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
Результат bool

ConvertFrom() публичный Метод

Converts the given object to the reference type.

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
Результат object

ConvertTo() публичный Метод

Converts the given value object to the reference type using the specified context and arguments.

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
Результат object

GetStandardValues() публичный Метод

Gets a collection of standard values for the reference data type.

public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
Результат StandardValuesCollection

GetStandardValuesExclusive() публичный Метод

Gets a value indicating whether the list of standard values returned from is an exclusive list.

public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Результат bool

GetStandardValuesSupported() публичный Метод

Gets a value indicating whether this object supports a standard set of values that can be picked from a list.

public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Результат bool

IsValueAllowed() защищенный Метод

Gets a value indicating whether a particular value can be added to the standard values collection.

protected IsValueAllowed ( ITypeDescriptorContext context, object value ) : bool
context ITypeDescriptorContext
value object
Результат bool

ReferenceConverter() публичный Метод

Initializes a new instance of the class.

public ReferenceConverter ( Type type ) : Microsoft.Win32
type System.Type
Результат Microsoft.Win32