See Also

Chart Class  | Chart Members

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

DefaultFormatString Property

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

See Chart.DefaultAxis.FormatString.

[Visual Basic]
Public Property DefaultFormatString As String
[C#]
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

[C#] 

Chart.DefaultFormatString = "n,2"; 
Chart.DefaultFormatString = "MM";

[Visual Basic] 

Chart.DefaultFormatString = "n,2"
Chart.DefaultFormatString = "MM"

See Also

Chart Class  | Chart Members

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.