C# 클래스 Revit.SDK.Samples.SharedCoordinateSystem.CS.UnitConversion

a class used to deal with converting operation
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
ConvertFrom ( CityInfo cityInfo ) : CityInfoString

convert CityInfo into CityInfoString

ConvertTo ( CityInfoString cityInfoString ) : CityInfo

convert CityInfoString into CityInfo

DealDecimalNumber ( string value, int number ) : string

deal with decimal number

DealPrecision ( double value, int precision ) : double

deal with value according to precision

DoubleToString ( double value, ValueType valueType ) : string

convert double into string

StringToDouble ( string value, ValueType valueType, double &newValue ) : bool

convert string into double

비공개 메소드들

메소드 설명
ParseFromString ( string value, ValueType valueType, double &result ) : bool

Parse double from string

ValueConversion ( double value, ValueType valueType, bool isDoubleToString, double &newValue ) : void

deal with ratio

메소드 상세

ConvertFrom() 공개 정적인 메소드

convert CityInfo into CityInfoString
public static ConvertFrom ( CityInfo cityInfo ) : CityInfoString
cityInfo CityInfo CityInfo need to convert
리턴 CityInfoString

ConvertTo() 공개 정적인 메소드

convert CityInfoString into CityInfo
public static ConvertTo ( CityInfoString cityInfoString ) : CityInfo
cityInfoString CityInfoString CityInfoString need to convert
리턴 CityInfo

DealDecimalNumber() 공개 정적인 메소드

deal with decimal number
public static DealDecimalNumber ( string value, int number ) : string
value string string wanted to deal with
number int number of decimal
리턴 string

DealPrecision() 공개 정적인 메소드

deal with value according to precision
public static DealPrecision ( double value, int precision ) : double
value double original value will be dealed
precision int precision wanted to be set
리턴 double

DoubleToString() 공개 정적인 메소드

convert double into string
public static DoubleToString ( double value, ValueType valueType ) : string
value double double value need to convert
valueType System.ValueType value type
리턴 string

StringToDouble() 공개 정적인 메소드

convert string into double
public static StringToDouble ( string value, ValueType valueType, double &newValue ) : bool
value string string value need to convert
valueType System.ValueType value type
newValue double conversion result
리턴 bool