FieldFormat
Overview
FieldFormat is a class in Aspose.Words FOSS for Java.
Provides typed access to field’s numeric, date and time, and general formatting.
Edition status of its 8 listed members (a property and its accessor methods are listed separately, overloads once): 8 not yet exercised by a verified example.
This class declares 5 methods for FieldFormat objects in Java programs.
Available methods include: getDateTimeFormat, getGeneralFormats, getNumericFormat, setDateTimeFormat, setNumericFormat.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: dateTimeFormat, generalFormats, numericFormat.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
numericFormat | String | Read/Write | Gets or sets a formatting that is applied to a numeric field result. |
dateTimeFormat | String | Read/Write | Gets or sets a formatting that is applied to a date and time field result. |
generalFormats | GeneralFormatCollection | Read | Gets a collection of general formats that are applied to a numeric, text or any field result. |
Methods
| Signature | Description |
|---|---|
getNumericFormat() → String | Gets or sets a formatting that is applied to a numeric field result. |
setNumericFormat(value: String) | Sets the numeric format value. |
getDateTimeFormat() → String | Gets or sets a formatting that is applied to a date and time field result. |
setDateTimeFormat(value: String) | Sets the date time format value. |
getGeneralFormats() → GeneralFormatCollection | Gets a collection of general formats that are applied to a numeric, text or any field result. |