C# Класс Revit.SDK.Samples.SharedCoordinateSystem.CS.UnitConversion

a class used to deal with converting operation
Показать файл Открыть проект

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

Метод Описание
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