C# Class ComponentFactory.Quicksilver.Layout.LengthConverter

Converts instances of other types to and from instances of a Double that represent an object's length.
Inheritance: System.ComponentModel.TypeConverter
ファイルを表示 Open project: ComponentFactory/Quicksilver

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext typeDescriptorContext, Type sourceType ) : bool

Determines whether conversion is possible from a specified type to a Double that represents an object's length.

CanConvertTo ( ITypeDescriptorContext typeDescriptorContext, Type destinationType ) : bool

Determines whether conversion is possible to a specified type from a Double that represents an object's length.

ConvertFrom ( ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source ) : object

Converts instances of other data types into instances of Double that represent an object's length.

ConvertTo ( ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType ) : object

Converts other types into instances of Double that represent an object's length.

LengthConverter ( ) : System

Initialize a new instance of the LengthConverter class.

Method Details

CanConvertFrom() public method

Determines whether conversion is possible from a specified type to a Double that represents an object's length.
public CanConvertFrom ( ITypeDescriptorContext typeDescriptorContext, Type sourceType ) : bool
typeDescriptorContext ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
sourceType System.Type An ITypeDescriptorContext that provides a format context.
return bool

CanConvertTo() public method

Determines whether conversion is possible to a specified type from a Double that represents an object's length.
public CanConvertTo ( ITypeDescriptorContext typeDescriptorContext, Type destinationType ) : bool
typeDescriptorContext ITypeDescriptorContext Provides contextual information about a component.
destinationType System.Type Identifies the data type to evaluate for conversion.
return bool

ConvertFrom() public method

Converts instances of other data types into instances of Double that represent an object's length.
public ConvertFrom ( ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source ) : object
typeDescriptorContext ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
cultureInfo System.Globalization.CultureInfo The CultureInfo to use as the current culture.
source object Identifies the object that is being converted to Double.
return object

ConvertTo() public method

Converts other types into instances of Double that represent an object's length.
public ConvertTo ( ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType ) : object
typeDescriptorContext ITypeDescriptorContext Describes context information of a component, such as its container and PropertyDescriptor.
cultureInfo System.Globalization.CultureInfo Identifies culture-specific information, including the writing system and the calendar that is used.
value object Identifies the Object that is being converted.
destinationType System.Type The data type that this instance of Double is being converted to.
return object

LengthConverter() public method

Initialize a new instance of the LengthConverter class.
public LengthConverter ( ) : System
return System