Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

YamlSaveOptions

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

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

Constructors

public YamlSaveOptions() #

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.