C# Класс GlueSaveClasses.FloatRectangleTypeConverter

Наследование: System.ComponentModel.ExpandableObjectConverter
Показать файл Открыть проект

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

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

Determines if this converter can convert an object in the given source type to the native type of the converter.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Gets a value indicating whether this converter can convert an object to the given destination type using the context.

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

Converts the specified object to the specified type.

CreateInstance ( ITypeDescriptorContext context, IDictionary propertyValues ) : object

Creates an instance of this type given a set of property values for the object. This is useful for objects that are immutable but still want to provide changeable properties.

GetCreateInstanceSupported ( ITypeDescriptorContext context ) : bool
GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection

Retrieves the set of properties for this type. By default, a type does not return any properties.

GetPropertiesSupported ( ITypeDescriptorContext context ) : bool

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

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

Determines if this converter can convert an object in the given source type to the native type of the converter.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
sourceType System.Type The type you want to convert from.
Результат bool

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

Gets a value indicating whether this converter can convert an object to the given destination type using the context.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext An object that provides a format context. This can be null, so you should always check. Also, properties on the context object can also return null.
destinationType System.Type A object that represents the type you want to convert to.
Результат bool

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

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

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

Converts the specified object to the specified type.
The conversion cannot be completed.
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext A that can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
culture System.Globalization.CultureInfo An that contains culture specific information, such as the language, calendar, and cultural conventions associated with a specific culture. It is based on the RFC 1766 standard.
value object The object to convert.
destinationType System.Type The type to convert the object to.
Результат object

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

Creates an instance of this type given a set of property values for the object. This is useful for objects that are immutable but still want to provide changeable properties.
public CreateInstance ( ITypeDescriptorContext context, IDictionary propertyValues ) : object
context ITypeDescriptorContext A through which additional context can be provided.
propertyValues IDictionary A dictionary of new property values. The dictionary contains a series of name-value pairs, one for each property returned from a call to the method.
Результат object

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

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

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

Retrieves the set of properties for this type. By default, a type does not return any properties.
public GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection
context ITypeDescriptorContext A through which additional context can be provided.
value object The value of the object to get the properties for.
attributes System.Attribute An array of objects that describe the properties.
Результат System.ComponentModel.PropertyDescriptorCollection

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

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