C# Class Revit.SDK.Samples.PathReinforcement.CS.BartypeConverter

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
BartypeConverter ( ) : System

initialize m_hash

CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

whether conversion is allowed

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 hash table

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

Get supported standard value

Method Details

BartypeConverter() public méthode

initialize m_hash
public BartypeConverter ( ) : System
Résultat System

CanConvertFrom() public méthode

whether conversion is allowed
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 méthode

fill hash table
public 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

Get supported standard value
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

Property Details

m_hash protected_oe property

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