RtfComplianceIssue Constructor

Initialize a new instance of the RtfComplianceIssue struct.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public RtfComplianceIssue(
	RtfComplianceViolation violation,
	long offset,
	int lineNumber,
	int linePosition,
	int depth
)

Parameters

violation  RtfComplianceViolation
The specific RTF compliance violation that occurred.
offset  Int64
The character offset within the document where the violation was found.
lineNumber  Int32
The line number where the violation was found.
linePosition  Int32
The position within the line where the violation was found.
depth  Int32
The group nesting depth where the violation was found.

Remarks

Creates a new RtfComplianceIssue.

Exceptions

ArgumentOutOfRangeException

violation is not a valid RtfComplianceViolation.

-or-

offset is negative.

-or-

lineNumber is less than 1.

-or-

linePosition is less than 1.

-or-

depth is negative.

See Also