YamlSaveOptions
OfficeIMO.Yaml
Settings for saving a YamlDocument. The default save changes only edited text; everything else is copied from the source byte for byte.
Inheritance
- object
- YamlSaveOptions
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 3
- Method YamlDocument.Save
- Method YamlDocument.SaveAsync
- Method YamlDocument.ToString
Constructors
public YamlSaveOptions() #Inherited Methods
Properties
public bool Reformat { get; set; } #Gets or sets whether to write the whole document anew through the emitter instead of copying untouched text, to normalize indentation. Values, scalar spellings and styles, anchors, tags, comments and the blank lines above entries are kept; multi-line plain and folded scalars are laid out again, and comments inside flow collections are dropped. Defaults to false.
public YamlWriterOptions? WriterOptions { get; set; } #Gets or sets the layout a reformat uses, or null (the default) for the layout inferred from the document itself.