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

base class of converting types of FamilySymbol to string Code here have nothing with Revit API it's only for PropertyGrid and its SelectedObject
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: AMEE/revit

보호된 프로퍼티들

프로퍼티 타입 설명
m_hash FamilySymbol>.Dictionary

공개 메소드들

메소드 설명
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

whether this converter can convert an object of the given type to string

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

converts the Name to corresponding FamilySymbol

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

converts the given FamilySymbol to the Name, using the specified context and culture information

GetConvertHash ( ) : void

subclass must implement to initialize m_hash

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

returns a collection of FamilySymbol

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

whether the collection of standard values returned from GetStandardValues is an exclusive list of possible values

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

returns whether this object supports a standard set of values that can be picked from a list

보호된 메소드들

메소드 설명
ParameterConverter ( ) : System

constructor initialize m_hash

메소드 상세

CanConvertFrom() 공개 메소드

whether this converter can convert an object of the given type to string
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext provides a format context
sourceType System.Type a Type that represents the type you want to convert from
리턴 bool

ConvertFrom() 공개 메소드

converts the Name to corresponding FamilySymbol
public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext provides a format context
culture System.Globalization.CultureInfo the CultureInfo to use as the current culture
value object the Object to convert
리턴 object

ConvertTo() 공개 메소드

converts the given FamilySymbol to the Name, using the specified context and culture information
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object v, Type destinationType ) : object
context ITypeDescriptorContext provides a format context
culture System.Globalization.CultureInfo the CultureInfo to use as the current culture
v object the Object to convert
destinationType System.Type should be string
리턴 object

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

subclass must implement to initialize m_hash
public abstract GetConvertHash ( ) : void
리턴 void

GetStandardValues() 공개 메소드

returns a collection of FamilySymbol
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext provides a format context
리턴 StandardValuesCollection

GetStandardValuesExclusive() 공개 메소드

whether the collection of standard values returned from GetStandardValues is an exclusive list of possible values
public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext provides a format context
리턴 bool

GetStandardValuesSupported() 공개 메소드

returns whether this object supports a standard set of values that can be picked from a list
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext provides a format context
리턴 bool

ParameterConverter() 보호된 메소드

constructor initialize m_hash
protected ParameterConverter ( ) : System
리턴 System

프로퍼티 상세

m_hash 보호되어 있는 프로퍼티

hashtable of FamilySymbol and its Name
protected Dictionary m_hash
리턴 FamilySymbol>.Dictionary