C# Class Revit.SDK.Samples.ProjectInfo.CS.ConstructionWrapperConverter

Converter for ConstructionWrapper
Inheritance: System.ComponentModel.TypeConverter
Afficher le fichier Open project: AMEE/revit

Méthodes publiques

Méthode Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Can convert from string

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Can be converted to string

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

Returns a ConstructionWrapper from a string

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

Convert object to string

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

Returns a collection of standard values from the default context for the data type this type converter is designed for.

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues() is an exclusive list.

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.

Method Details

CanConvertFrom() public méthode

Can convert from string
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
sourceType System.Type A Type that represents the type you want to convert from.
Résultat bool

CanConvertTo() public méthode

Can be converted to string
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Résultat bool

ConvertFrom() public méthode

Returns a ConstructionWrapper from a string
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext An System.ComponentModel.ITypeDescriptorContext /// that provides a format context.
culture System An optional System.Globalization.CultureInfo. /// If not supplied, the current culture is assumed.
value object string to be converted to
Résultat object

ConvertTo() public méthode

Convert object to string
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
culture System A CultureInfo. If null is passed, the current culture is assumed.
value object The Object to convert.
destinationType System.Type The Type to convert the value parameter to.
Résultat object

GetStandardValues() public méthode

Returns a collection of standard values from the default context for the data type this type converter is designed for.
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
Résultat StandardValuesCollection

GetStandardValuesExclusive() public méthode

Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues() is an exclusive list.
public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

GetStandardValuesSupported() public méthode

Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool