.netCHARTING v10.5 Documentation
Example 


dotnetCHARTING Namespace > Chart Class : DefaultFormatString Property
DefaultFormatString Property
Gets or sets the default format string which determines number and date formatting.

See Chart.DefaultAxis.FormatString.
Syntax
'Declaration
 
Public Property DefaultFormatString As String
'Usage
 
Dim instance As Chart
Dim value As String
 
instance.DefaultFormatString = value
 
value = instance.DefaultFormatString
public string DefaultFormatString {get; set;}
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.
Example
Chart.DefaultFormatString = "n,2";
Chart.DefaultFormatString = "MM";
Chart.DefaultFormatString = "n,2" 
Chart.DefaultFormatString = "MM"
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also