FlexPivot for WPF | ComponentOne
C1.PivotEngine Assembly / C1.PivotEngine Namespace / RangeInfo Class / Format Property
Example

In This Topic
    Format Property (RangeInfo)
    In This Topic
    The format string to format range values.
    Syntax
    'Declaration
     
    Public ReadOnly Property Format As String
    public string Format {get;}
    Example
    Engine.Fields["OrderDate"].Range.RangeType = RangeType.FiscalYear;
    Engine.Fields["OrderDate"].Format = "\"FY\" yyyy";
    Engine.Fields["OrderDate"].Caption = "Fiscal Year";
    Engine.Fields["OrderDate"].Range.FiscalYearFirstMonth = FirstMonthOfFiscalYear;
    Engine.Fields["OrderDate"].Range.FiscalYearShift = 0;
     // result: "FY 2014"
    See Also