Field MaxContainerNestingDepth
The hard ceiling on how deeply resolution will descend through nested containers — tables and content controls — regardless of MaxNestedTableDepth.
public const int MaxContainerNestingDepth = 100
Returns
- int
- The hard ceiling on how deeply resolution will descend through nested containers — tables and content controls — regardless of .
Remarks
This is not a fidelity limit and it is not configurable, because the condition it
prevents is not recoverable. Resolution descends through a table with roughly five
stack frames per level, so a document nesting a few hundred tables exhausts the CLR
stack — and a StackOverflowException terminates the process without
running a single catch or finally. No caller can contain that, so it has
to be impossible rather than caught.
The value is far past anything a real document reaches: Word's own editor stops authors well below it, and the deepest nesting in the corpus is 2.