Back to Devexpress

PivotGridFieldBase.IsDefaultFormat(FormatInfo) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-dot-isdefaultformat-x28-devexpress-dot-utils-dot-formatinfo-x29.md

latest3.0 KB
Original Source

PivotGridFieldBase.IsDefaultFormat(FormatInfo) Method

Returns whether the specified formatting settings match the default ones.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
public static bool IsDefaultFormat(
    FormatInfo formatInfo
)
vb
Public Shared Function IsDefaultFormat(
    formatInfo As FormatInfo
) As Boolean

Parameters

NameTypeDescription
formatInfoFormatInfo

A FormatInfo object that represents the formatting settings that should be compared with the default ones.

|

Returns

TypeDescription
Boolean

true if the specified formatting settings match the default ones; otherwise, false.

|

Remarks

The PivotGridControl provides global default formatting settings for date/time, decimal and percent values. These settings are accessed via the static PivotGridFieldBase.DefaultDateFormat, PivotGridFieldBase.DefaultDecimalFormat, and PivotGridFieldBase.DefaultPercentFormat properties, respectively. The total values have specific global formatting settings obtained by the static PivotGridFieldBase.DefaultTotalFormat property. The IsDefaultFormat method returns true if the specified formatting settings match the default ones for one of the value types.

See Also

DefaultDateFormat

DefaultDecimalFormat

DefaultPercentFormat

DefaultTotalFormat

PivotGridFieldBase Class

PivotGridFieldBase Members

DevExpress.XtraPivotGrid Namespace