dotnetCHARTING Send comments on this topic.
DefaultFormatString Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : DefaultFormatString Property


Gets or sets the default format string which determines number and date formatting.

See Chart.DefaultAxis.FormatString.

Syntax

Visual Basic (Declaration) 
Public Property DefaultFormatString As String
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim value As String
 
instance.DefaultFormatString = value
 
value = instance.DefaultFormatString
C# 
public string DefaultFormatString {get; set;}

Example

C#Copy Code
Chart.DefaultFormatString = "n,2";
Chart.DefaultFormatString =
"MM";
    
Visual BasicCopy Code
Chart.DefaultFormatString = "n,2"
Chart.DefaultFormatString = "MM"

Remarks

Equivalent to Chart.DefaultAxis.FormatString.

See 'Formatting Types' in your msdn documentation for a complete list of options.

Some shortcuts are also provided for specific settings including "C" or "currency" , "E" or "scientific" , "F" or "fixed" , "G" or "general" and "N,2" for normal and the number after the comma determines the number of decimal places.

See Also

© 2010 All Rights Reserved.