HtmlComplianceIssueOffset Property

Get the character offset within the document where the violation was found.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public long Offset { get; }

Property Value

Int64
The character offset.

Remarks

Gets the zero-based offset, in UTF-16 code units, of the character where the violation was found, relative to the start of the decoded text. A byte-order mark is not counted.

Violations that describe a character reference are reported at the & that begins it, and violations caused by the end of the input are reported at the end of the input.

See Also