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
)
Public MustOverride Function DoubleToText (
lengthValue As Double,
formatType As LengthUnitFormatType,
precision As Integer,
visibleZero As Boolean,
aboveZeroVisible As Boolean,
feetZeroVisible As Boolean,
inchZeroVisible As Boolean
) As String
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:
StringA string in the specified notation (empty on error).
See Also