C# Class GlueSaveClasses.FloatRectangleTypeConverter

Inheritance: System.ComponentModel.ExpandableObjectConverter
Mostrar archivo Open project: vchelaru/FlatRedBall

Public Methods

Method Description
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

Method Details

CanConvertFrom() public method

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.
return bool

CanConvertTo() public method

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.
return bool

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertTo() public method

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.
return object

CreateInstance() public method

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.
return object

GetCreateInstanceSupported() public method

public GetCreateInstanceSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
return bool

GetProperties() public method

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.
return System.ComponentModel.PropertyDescriptorCollection

GetPropertiesSupported() public method

public GetPropertiesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
return bool