Scalar Class
Represents a scalar event.
public sealed class Scalar : NodeEvent- Inheritance
NodeEventScalar
Constructors
| Name | Description |
|---|---|
| Scalar(string) | Initializes a new instance of the Scalar class. |
| Scalar(string, ScalarStyle) | Initializes a new instance of the Scalar class. |
| Scalar(string?, string) | Initializes a new instance of the Scalar class. |
| Scalar(string, string, string) | Initializes a new instance of the Scalar class. |
| Scalar(string?, string?, string, ScalarStyle, bool, bool) | Initializes a new instance of the Scalar class. |
| Scalar(string?, string?, string, ScalarStyle, bool, bool, Mark, Mark) | Initializes a new instance of the Scalar class. |
Scalar overloads
Scalar(string)
Scalar.csScalar(string, ScalarStyle)
Scalar.csInitializes a new instance of the Scalar class.
public Scalar(string value, ScalarStyle style)Parameters
valuestring- The value.
styleScalarStyle- The style of this scalar
Scalar(string?, string)
Scalar.csScalar(string, string, string)
Scalar.csScalar(string?, string?, string, ScalarStyle, bool, bool)
Scalar.csScalar(string?, string?, string, ScalarStyle, bool, bool, Mark, Mark)
Scalar.csProperties
| Name | Description |
|---|---|
| IsCanonical | Gets a value indicating whether this instance is canonical. |
| IsPlainImplicit | Gets a value indicating whether the tag is optional for the plain style. |
| IsQuotedImplicit | Gets a value indicating whether the tag is optional for any non-plain style. |
| NestingIncrease | Gets a value indicating the variation of depth caused by this event. The value can be either -1, 0 or 1. For start events, it will be 1, for end events, it will be -1, and for the remaining events, it will be 0. |
| Style | Gets the style of the scalar. |
| Value | Gets the value. |
IsCanonical
Scalar.csIsPlainImplicit
Scalar.csIsQuotedImplicit
Scalar.csNestingIncrease
Scalar.csStyle
Scalar.csValue
Scalar.csMethods
| Name | Description |
|---|---|
| ToString() | Returns a String that represents the current Object. |