The format string for all string conversions.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public static string StringNumberFormat
Visual Basic (Declaration)
Public Shared StringNumberFormat As String
Visual C++
public:
static String^ StringNumberFormat

Remarks

The format defined by this string formats all values in a .ToString - conversion of a geometric object.

Examples

CopyC#
// Create a point
Point p = new Point(Math.Sqrt(2), 0, -1);

// Outputs (1.4142, 0.0000, -1.0000) by default
Console.WriteLine(p.ToString());

// Outputs (1.41, 0, -1)
Global.StringNumberFormat = "0.##";
Console.WriteLine(p.ToString()); 

// Outputs (1.4142135623731, 0, -1) (no special format)
Global.StringNumberFormat = "";
Console.WriteLine(p.ToString());

See Also