Click or drag to resize

NumericTextConverterDoubleToText Method

Converts a real value (double) to a string with the specified notation. If the specified notation type is feet-inches, the specified real value is converted as millimeters.

Namespace:  RootPro.RootProCAD.Geometry
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public abstract string DoubleToText(
	double lengthValue,
	LengthUnitFormatType formatType,
	int precision,
	bool visibleZero,
	bool aboveZeroVisible,
	bool feetZeroVisible,
	bool inchZeroVisible
)

Parameters

lengthValue
Type: SystemDouble
Real value of length (dpuble)
formatType
Type: RootPro.RootProCADLengthUnitFormatType
Length notation type LengthUnitFormatType .
precision
Type: SystemInt32
Length notation precision 0 ... 8
visibleZero
Type: SystemBoolean
"Display zeros after decimal point" flag
aboveZeroVisible
Type: SystemBoolean
"Display zeros before decimal point" flag
feetZeroVisible
Type: SystemBoolean
"Display zero feet" flag
inchZeroVisible
Type: SystemBoolean
"Display zero inches" flag

Return Value

Type: String
A string in the specified notation (empty on error).
See Also