C# Класс Revit.SDK.Samples.ProjectInfo.CS.CityConverter

Converts City with string
Наследование: System.ComponentModel.TypeConverter
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Cities List

Открытые методы

Метод Описание
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool

Converts from string.

CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Converts to string.

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

Returns an element from a string contains its id

ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object

Returns element name. returns empty string if value is null or Element.Name throws an exception.

GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection

Returns a collection of standard values from the default context for the data type this type converter is designed for.

GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool

Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues() is an exclusive list.

GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool

Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.

Приватные методы

Метод Описание
CityConverter ( ) : System

Описание методов

CanConvertFrom() публичный Метод

Converts from string.
public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
Результат bool

CanConvertTo() публичный Метод

Converts to string.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Результат bool

ConvertFrom() публичный Метод

Returns an element from a string contains its id
public ConvertFrom ( ITypeDescriptorContext context, System culture, object value ) : object
context ITypeDescriptorContext An System.ComponentModel.ITypeDescriptorContext /// that provides a format context.
culture System An optional System.Globalization.CultureInfo. /// If not supplied, the current culture is assumed.
value object string to be converted to an element
Результат object

ConvertTo() публичный Метод

Returns element name. returns empty string if value is null or Element.Name throws an exception.
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext An ITypeDescriptorContext that provides a format context.
culture System A CultureInfo. If null is passed, the current culture is assumed.
value object The Object to convert.
destinationType System.Type The Type to convert the value parameter to.
Результат object

GetStandardValues() публичный Метод

Returns a collection of standard values from the default context for the data type this type converter is designed for.
public GetStandardValues ( ITypeDescriptorContext context ) : StandardValuesCollection
context ITypeDescriptorContext
Результат StandardValuesCollection

GetStandardValuesExclusive() публичный Метод

Returns whether the collection of standard values returned from System.ComponentModel.TypeConverter.GetStandardValues() is an exclusive list.
public GetStandardValuesExclusive ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Результат bool

GetStandardValuesSupported() публичный Метод

Returns whether this object supports a standard set of values that can be picked from a list, using the specified context.
public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Результат bool

Описание свойств

Cities публичное статическое свойство

public static List Cities
Результат List