Xceed Chart for WinForms v4.4 Documentation
CultureInfo Property
Example 


Xceed.Chart.Utilities.v4.4 Assembly > Xceed.Chart.Utilities Namespace > ValueFormatting Class : CultureInfo Property
Allows you to localize the value formatting for a specific language and region.
Syntax
'Declaration
 
<CategoryAttribute("General")>

<DescriptionAttribute("Allows you to localize the value formatting for a specific language and region.")>

Public Property CultureInfo As CultureInfo
'Usage
 
Dim instance As ValueFormatting

Dim value As CultureInfo

 

instance.CultureInfo = value

 

value = instance.CultureInfo
[Category("General")]

[Description("Allows you to localize the value formatting for a specific language and region.")]

public CultureInfo CultureInfo {get; set;}
Remarks
If you do not set an explicit CultureInfo to the ValueFormatting object the current thread culture info will be used.
Example
The following code formats the numbers of the PrimaryY axis in accordance with the Norwegian-Bokmal locale (uses a "," instead of "." as a the decimal separator).
Imports System.Globalization

...

Dim ci As CultureInfo =  New CultureInfo("nb-NO") 

Chart.Axis(StandardAxis.PrimaryY).ValueFormat.CultureInfo = ci
using System.Globalization;

...

CultureInfo ci = new CultureInfo("nb-NO");

Chart.Axis(StandardAxis.PrimaryY).ValueFormat.CultureInfo = ci;
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

Reference

ValueFormatting Class
ValueFormatting Members