Nevron .NET Vision
Nevron.Dom Namespace / NValueFormatter Class / CultureInfo Property
Example


In This Topic
    CultureInfo Property (NValueFormatter)
    In This Topic
    Allows you to localize the value formatting for a specific language and region.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.CategoryAttribute("General")>
    <System.ComponentModel.DescriptionAttribute("Allows you to localize the value formatting for a specific language and region.")>
    <System.Xml.Serialization.XmlIgnoreAttribute()>
    Public Property CultureInfo As System.Globalization.CultureInfo
    'Usage
     
    
    Dim instance As NValueFormatter
    Dim value As System.Globalization.CultureInfo
     
    instance.CultureInfo = value
     
    value = instance.CultureInfo
    [System.ComponentModel.Category("General")]
    [System.ComponentModel.Description("Allows you to localize the value formatting for a specific language and region.")]
    [System.Xml.Serialization.XmlIgnore()]
    public System.Globalization.CultureInfo CultureInfo {get; set;}
    Remarks
    If you do not set an explicit CultureInfo to the NValueFormatter 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") 
    NChart.Axis(StandardAxis.PrimaryY).ValueFormat.CultureInfo = ci
    using System.Globalization;
    ...
    CultureInfo ci = new CultureInfo("nb-NO");
    NChart.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