format method

format(value, format)

Called when Aspose.Words applies a capitalization format switch, i.e. \* Upper.

def format(self, value: str, format: aspose.words.fields.GeneralFormat):
    ...
ParameterTypeDescription
valuestr
formatGeneralFormat

Remarks

The implementation should return None to indicate that the default formatting should be applied.

format(value, format)

Called when Aspose.Words applies a number format switch, i.e. \* Ordinal.

def format(self, value: float, format: aspose.words.fields.GeneralFormat):
    ...
ParameterTypeDescription
valuefloat
formatGeneralFormat

Remarks

The implementation should return None to indicate that the default formatting should be applied.

See Also