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.


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
public string DefaultFormatString {get; set;}


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


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

© 2019 All Rights Reserved.