Fields
Properties
IndexFormat
#Gets the formatting template for indices. A null or empty string means no indices will be included.
MetaFormat
#Gets the formatting pattern for meta data. A null or empty string means meta data is not included in the formatting.
NullFormat
#Gets the format pattern for null items. A null or empty string means nulls will be skipped entirely.
Methods
CreateArrayFormatting
#Create a new default formatting style used for set formatting.
Returns: Twig formatting style.
CreateFullFormatting
#Create a new formatting style used for exhaustive formatting.
Returns: Twig formatting style.
CreateListFormatting
#Create a new default formatting style used for list formatting.
Returns: Twig formatting style.
CreateTopologicalFormatting
#Create a new default formatting style used for topological formatting.
Returns: Twig formatting style.
WithAdditionalIndent
#Create a new formatting instance which is indented from the current one.
Returns: Indented format.
WithAdditionalIndent
#Create a new formatting instance which is indented from the current one.
Parameters:
| amount (int) | Number of indentation steps. |
Returns: Indented format.
WithIndexing
#Set a new indexing format. An empty or null string will omit indexing from this formatting. Use '{0}' to insert the index value into the format.
Parameters:
| indexFormat (string) |
WithMetaData
#Set a new meta data format. An empty or null string will omit meta data from this formatting. Use '{0}' to insert the meta data count into the format. Use '{1}' to insert comma separated meta data keys into the format. Use '{2}' to insert comma separated meta data keys-value pears into the format.
Parameters:
| metaFormat (string) |