Back to Devexpress

CustomExportCellEventArgsBase.FormatType Property

corelibraries-devexpress-dot-pivotgrid-dot-printing-dot-customexportcelleventargsbase.md

latest3.5 KB
Original Source

CustomExportCellEventArgsBase.FormatType Property

Gets the type of formatting.

Namespace : DevExpress.PivotGrid.Printing

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

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

Declaration

csharp
public FormatType FormatType { get; }
vb
Public ReadOnly Property FormatType As FormatType

Property Value

TypeDescription
FormatType

A FormatType enumeration value that specifies the formatting type.

|

Available values:

NameDescription
None

No formatting is performed.

Setting the FormatInfo.FormatType property to None clears the FormatInfo.FormatString property and sets the FormatInfo.Format object to null.

| | Numeric |

Specifies that values should be formatted as numbers.

Setting FormatInfo.FormatType to Numeric assigns the static System.Globalization.NumberFormatInfo.CurrentInfo format provider to the FormatInfo.Format property. This defines the format provider for the current culture.

Also FormatInfo.FormatString is set to an empty string.

| | DateTime |

Specifies that values should be formatted as the DateTime type.

Setting FormatInfo.FormatType to DateTime assigns the static CurrentInfo format provider to the FormatInfo.Format property. This defines the format provider for the current culture. Also FormatInfo.FormatString is set to “d” (short date pattern).

| | Custom |

Use Custom to format string values.

Use Custom when assigning a custom IFormatProvider to the FormatInfo.Format property.

Setting FormatInfo.FormatType to Custom does not change the FormatInfo.Format and FormatInfo.FormatString property values.

|

See Also

CustomExportCellEventArgsBase Class

CustomExportCellEventArgsBase Members

DevExpress.PivotGrid.Printing Namespace