Table of Contents

Class RtfReadOptions

Namespace
RichEdit.Core.Rtf
Assembly
RichEdit.Core.dll

Resource limits for untrusted RTF input. Streams remain owned by the caller.

public sealed record RtfReadOptions : IEquatable<RtfReadOptions>
Inheritance
RtfReadOptions
Implements
Inherited Members

Properties

MaximumAssetBytes

Maximum bytes in one picture or binary payload.

public int MaximumAssetBytes { get; init; }

Property Value

int

MaximumBytes

Maximum bytes consumed from the input.

public long MaximumBytes { get; init; }

Property Value

long

MaximumDepth

Maximum nested RTF groups.

public int MaximumDepth { get; init; }

Property Value

int

MaximumNodes

Maximum allocation records for structural nodes, resource definitions, pending anchors, table descriptors and distinct diagnostics.

public int MaximumNodes { get; init; }

Property Value

int

Remarks

Buffered parser records count in addition to their resulting model nodes. Repeated resource definitions also consume this budget.

MaximumRevisionWork

Maximum combined graph and dependency entries examined while validating retained revisions.

public long MaximumRevisionWork { get; init; }

Property Value

long

Remarks

This bounds repeated historical validation independently of serialized byte and node counts.

MaximumTextLength

Maximum decoded UTF-16 content and metadata, including annotations and retained revision contexts.

public int MaximumTextLength { get; init; }

Property Value

int

RequireLossless

Rejects input when an unsupported feature would be omitted or approximated.

public bool RequireLossless { get; init; }

Property Value

bool