YamlScalarFluent
OfficeIMO.Yaml
The fluent methods of YamlScalar, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.
Inheritance
- object
- YamlScalarFluent
Methods
public static YamlScalar Anchor(YamlScalar yamlScalar, string? name) #Sets, renames or removes (null) the node's anchor. Renaming updates every alias that refers to the node; removing an anchor that aliases still use fails.
Parameters
- yamlScalar OfficeIMO.Yaml.YamlScalar
- The instance.
- name string?
- The value.
public static YamlScalar LeadingComment(YamlScalar yamlScalar, string? text) #Replaces the comment lines above the node's entry; each line of text becomes one # line comment at the entry's indentation. null or an empty string removes them.
Parameters
- yamlScalar OfficeIMO.Yaml.YamlScalar
- The instance.
- text string?
- The value.
public static YamlScalar SpaceBefore(YamlScalar yamlScalar, bool value = true) #Sets whether a blank line separates the node's entry from the previous content.
Parameters
- yamlScalar OfficeIMO.Yaml.YamlScalar
- The instance.
- value bool = true
- The value. True when omitted.
public static YamlScalar Tag(YamlScalar yamlScalar, string? tag) #Sets or removes (null) the node's tag, in the resolved form YamlNode.Tag reports (tag:yaml.org,2002:str, !Ref). Tags change how a scalar resolves; they never activate .NET types.
Parameters
- yamlScalar OfficeIMO.Yaml.YamlScalar
- The instance.
- tag string?
- The value.
public static YamlScalar TrailingComment(YamlScalar yamlScalar, string? text) #Sets the comment at the end of the node's line (value # text), or removes it with null.
Parameters
- yamlScalar OfficeIMO.Yaml.YamlScalar
- The instance.
- text string?
- The value.