C# Class Revit.SDK.Samples.AreaReinParameters.CS.ParameterConverter

converter between Autodesk.Revit.DB.ElementId and Element's name
Inheritance: System.ComponentModel.TypeConverter
Afficher le fichier Open project: AMEE/revit

Protected Properties

Свойство Type Description
m_hash System.Collections.Hashtable

Méthodes publiques

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

whether conversion is allowable

ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object v ) : object

convert from Name to ElementId

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

convert from Autodesk.Revit.DB.ElementId to Name

GetConvertHash ( ) : void

fill m_hashtable

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

provide Autodesk.Revit.DB.ElementId collection

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

always return true so that user can't input unexpected text

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

always return true

Méthodes protégées

Méthode Description
ParameterConverter ( ) : System

initialize m_hash

Method Details

CanConvertFrom() public méthode

whether conversion is allowable
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
Résultat bool

ConvertFrom() public méthode

convert from Name to ElementId
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object v ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
v object Name
Résultat object

ConvertTo() public méthode

convert from Autodesk.Revit.DB.ElementId to Name
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object v, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
v object ElementId
destinationType System.Type String
Résultat object

GetConvertHash() public abstract méthode

fill m_hashtable
public abstract GetConvertHash ( ) : void
Résultat void

GetStandardValues() public méthode

provide Autodesk.Revit.DB.ElementId collection
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
Résultat StandardValuesCollection

GetStandardValuesExclusive() public méthode

always return true so that user can't input unexpected text
public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

GetStandardValuesSupported() public méthode

always return true
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

ParameterConverter() protected méthode

initialize m_hash
protected ParameterConverter ( ) : System
Résultat System

Property Details

m_hash protected_oe property

hash table save
protected Hashtable,System.Collections m_hash
Résultat System.Collections.Hashtable