Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

YamlStyle

OfficeIMO.Yaml

Namespace
OfficeIMO.Yaml
Assembly
OfficeIMO.Yaml
Source revision
0eef6a5756b9 with working tree changes
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

The presentation style of the node the reader is positioned on. Styles describe source syntax only; they never change a node's value under the active schema, except that only YamlStyle.Plain scalars resolve implicitly.

Inheritance

  • Enum
  • YamlStyle

Usage

Explore 21 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 7

Values

public const YamlStyle None #

The current event has no style (stream, document, end and comment events).

Value: 0
public const YamlStyle Plain #

An unquoted scalar, including an empty node. Only plain scalars resolve to null, boolean or number without a tag.

Value: 1
public const YamlStyle SingleQuoted #

A scalar in single quotes; '' stands for one quote.

Value: 2
public const YamlStyle DoubleQuoted #

A scalar in double quotes, which supports backslash escapes.

Value: 3
public const YamlStyle Literal #

A literal block scalar (|), which keeps line breaks.

Value: 4
public const YamlStyle Folded #

A folded block scalar (>), which folds line breaks into spaces.

Value: 5
public const YamlStyle Block #

A collection laid out by indentation.

Value: 6
public const YamlStyle Flow #

A collection in brackets ([ ]) or braces ({ }).

Value: 7