DocumentStart Class
Represents a document start event.
public sealed class DocumentStart : ParsingEvent- Inheritance
ParsingEventDocumentStart
Constructors
| Name | Description |
|---|---|
| DocumentStart() | Initializes a new instance of the DocumentStart class. |
| DocumentStart(Mark, Mark) | Initializes a new instance of the DocumentStart class. |
| DocumentStart(VersionDirective?, TagDirectiveCollection?, bool) | Initializes a new instance of the DocumentStart class. |
| DocumentStart(VersionDirective?, TagDirectiveCollection?, bool, Mark, Mark) | Initializes a new instance of the DocumentStart class. |
DocumentStart overloads
DocumentStart()
DocumentStart.csInitializes a new instance of the DocumentStart class.
public DocumentStart()DocumentStart(Mark, Mark)
DocumentStart.csInitializes a new instance of the DocumentStart class.
DocumentStart(VersionDirective?, TagDirectiveCollection?, bool)
DocumentStart.csInitializes a new instance of the DocumentStart class.
public DocumentStart(VersionDirective? version, TagDirectiveCollection? tags, bool isImplicit)Parameters
versionVersionDirective?- The version.
tagsTagDirectiveCollection?- The tags.
isImplicitbool- Indicates whether the event is implicit.
DocumentStart(VersionDirective?, TagDirectiveCollection?, bool, Mark, Mark)
DocumentStart.csInitializes a new instance of the DocumentStart class.
public DocumentStart(VersionDirective? version, TagDirectiveCollection? tags, bool isImplicit, Mark start, Mark end)Parameters
versionVersionDirective?- The version.
tagsTagDirectiveCollection?- The tags.
isImplicitbool- Indicates whether the event is implicit.
startMark- The start position of the event.
endMark- The end position of the event.
Properties
| Name | Description |
|---|---|
| IsImplicit | Gets a value indicating whether this instance is implicit. |
| 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. |
| Tags | Gets the tags. |
| Version | Gets the version. |
IsImplicit
DocumentStart.csNestingIncrease
DocumentStart.csTags
DocumentStart.csGets the tags.
public TagDirectiveCollection? Tags { get; }Property value
TagDirectiveCollection? The tags.
Version
DocumentStart.csGets the version.
public VersionDirective? Version { get; }Property value
VersionDirective? The version.
Methods
| Name | Description |
|---|---|
| ToString() | Returns a String that represents the current Object. |