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):
...
Parameter | Type | Description |
---|---|---|
value | str | |
format | GeneralFormat |
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):
...
Parameter | Type | Description |
---|---|---|
value | float | |
format | GeneralFormat |
Remarks
The implementation should return None
to indicate that the default formatting should be applied.
See Also
- module aspose.words.fields
- class IFieldResultFormatter