C# 클래스 Revit.SDK.Samples.ProjectInfo.CS.ProjectLocationConverter

Converts ProjectLocation with string
상속: System.ComponentModel.TypeConverter
파일 보기 프로젝트 열기: AMEE/revit

공개 프로퍼티들

프로퍼티 타입 설명
ProjectLocations 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

Converts from string.

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

Converts to string.

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.

비공개 메소드들

메소드 설명
ProjectLocationConverter ( ) : System

Initialize ProjectLocations

메소드 상세

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() 공개 메소드

Converts from string.
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() 공개 메소드

Converts to string.
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

프로퍼티 상세

ProjectLocations 공개적으로 정적으로 프로퍼티

All project locations in current document
public static List ProjectLocations
리턴 List