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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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