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

NameTypeAccessDescription
numericFormatStringRead/WriteGets or sets a formatting that is applied to a numeric field result.
dateTimeFormatStringRead/WriteGets or sets a formatting that is applied to a date and time field result.
generalFormatsGeneralFormatCollectionReadGets a collection of general formats that are applied to a numeric, text or any field result.

Methods

SignatureDescription
getNumericFormat() → StringGets or sets a formatting that is applied to a numeric field result.
setNumericFormat(value: String)Sets the numeric format value.
getDateTimeFormat() → StringGets or sets a formatting that is applied to a date and time field result.
setDateTimeFormat(value: String)Sets the date time format value.
getGeneralFormats() → GeneralFormatCollectionGets a collection of general formats that are applied to a numeric, text or any field result.

See Also