C# 클래스 GlueSaveClasses.FloatRectangleTypeConverter

상속: System.ComponentModel.ExpandableObjectConverter
파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
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