NumericTextConverterDegreeToDmsText Method |
Converts an angle value (Degree) to a string in "degrees-minutes-seconds" or other notation.
Same as the AngleDegreeToText method.
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 DegreeToDmsText(
double degree,
AngleUnitFormatType formatType,
int precision,
string dText,
bool visibleZero,
bool aboveZeroVisible,
bool angleDMZeroVisible,
bool angleMSZeroVisible,
bool angleMS2Width
)
Public MustOverride Function DegreeToDmsText (
degree As Double,
formatType As AngleUnitFormatType,
precision As Integer,
dText As String,
visibleZero As Boolean,
aboveZeroVisible As Boolean,
angleDMZeroVisible As Boolean,
angleMSZeroVisible As Boolean,
angleMS2Width As Boolean
) As String
Parameters
- degree
- Type: SystemDouble
Angle value (Degree) - formatType
- Type: RootPro.RootProCADAngleUnitFormatType
Notation type AngleUnitFormatType . - precision
- Type: SystemInt32
Angular notation precision 0 ... 8, 0 ... 6 for degrees and minutes: 0 ... 6 [0: degrees, 1: degrees, 2: degrees minutes, 3: Degrees minute and second. 0, 4: Degrees minute and second., 00 ,,, - dText
- Type: SystemString
Degree sign character (if empty: "°") - visibleZero
- Type: SystemBoolean
"Display zeroes following the right of decimal" flag - aboveZeroVisible
- Type: SystemBoolean
"Display zero before decimal" flag - angleDMZeroVisible
- Type: SystemBoolean
"Show zero or degree minute flag" - angleMSZeroVisible
- Type: SystemBoolean
"Display zero second or second" flag - angleMS2Width
- Type: SystemBoolean
Flag of minutes and seconds is 2 flag false: width 1 true: width 2 ex.1 -> 01, 0 -> 00
Return Value
Type:
String Degrees The minutes and seconds notation character string (empty in case of error).
See Also