C# 클래스 Revit.SDK.Samples.AreaReinParameters.CS.ParameterConverter

converter between Autodesk.Revit.DB.ElementId and Element's name
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: AMEE/revit

보호된 프로퍼티들

프로퍼티 타입 설명
m_hash System.Collections.Hashtable

공개 메소드들

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

보호된 메소드들

메소드 설명
ParameterConverter ( ) : System

initialize m_hash

메소드 상세

CanConvertFrom() 공개 메소드

whether conversion is allowable
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
리턴 bool

ConvertFrom() 공개 메소드

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

ConvertTo() 공개 메소드

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
리턴 object

GetConvertHash() 공개 추상적인 메소드

fill m_hashtable
public abstract GetConvertHash ( ) : void
리턴 void

GetStandardValues() 공개 메소드

provide Autodesk.Revit.DB.ElementId collection
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
리턴 StandardValuesCollection

GetStandardValuesExclusive() 공개 메소드

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

GetStandardValuesSupported() 공개 메소드

always return true
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
리턴 bool

ParameterConverter() 보호된 메소드

initialize m_hash
protected ParameterConverter ( ) : System
리턴 System

프로퍼티 상세

m_hash 보호되어 있는 프로퍼티

hash table save
protected Hashtable,System.Collections m_hash
리턴 System.Collections.Hashtable