Table of Contents

Property MaxNestingDepth

Namespace
DocWright.Formats.Rtf
Assembly
DocWright.Formats.Rtf.dll

MaxNestingDepth

Gets or sets the maximum group-nesting depth. Exceeding it throws a ResourceLimitExceededException.

public int MaxNestingDepth { get; set; }

Property Value

int

Remarks

RTF's group nesting is the format's stack-overflow vector: a file consisting only of open braces costs one byte per level. The parser is iterative so the depth costs heap rather than stack, but unbounded is still unbounded, and an overflow would be uncatchable where this exception is not.

Exceptions

ArgumentOutOfRangeException

The value is not positive.