[#BloombergLP-balxml-Encoder_OptionsCompatibilityUtil-getFormatterOptions] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_OptionsCompatibilityUtil.adoc[Encoder_OptionsCompatibilityUtil]::getFormatterOptions :relfileprefix: ../../../ :mrdocs: Load formatter layout and option values from the specified encoder options. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void getFormatterOptions( int* formatterIndentLevel, int* formatterSpacesPerLevel, int* formatterWrapColumn, xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions]* formatterOptions, xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions] const& encoderOptions); ---- == Description Load to the specified `formatterIndentLevel`, `formatterSpacesPerLevel`, and `formatterWrapColumn`, the number of spaces to indent the first element in the XML document, the number of spaces to use for indenting each level of nesting in the document, and the maximum horizontal column number after which the encoder should insert a line break, respectively, based on the specified `encoderOptions`. Load to the specified `formatterOptions` the options that the formatter should use to emit XML, based on the `encoderOptions`. The behavior is undefined unless `formatterOptions` has the default value. == Parameters [cols="1,4"] |=== | Name| Description | *formatterIndentLevel* | receives initial indent level | *formatterSpacesPerLevel* | receives spaces per nesting level | *formatterWrapColumn* | receives wrap column | *formatterOptions* | receives formatter options derived from `encoderOptions` | *encoderOptions* | encoder options to translate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#