RtfToHtmlMaxGroupDepth Property

Get or set the maximum group depth.

Definition

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

Property Value

Int32
The maximum group depth.

Remarks

Gets or sets the maximum number of distinct nested group states that will be tracked.

RTF groups ({ ... }) save and restore formatting state. Consecutive nested groups that do not change the state between them share a single entry, so arbitrarily deep nesting of groups that do not change any formatting does not count towards this limit. The content of any group that would exceed this limit is discarded.

Exceptions

ArgumentOutOfRangeException value is less than 1.

See Also