Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfSyntaxParser

OfficeIMO.Rtf.Syntax

Namespace
OfficeIMO.Rtf.Syntax
Assembly
OfficeIMO.Rtf
Source revision
ba882f6b0d07 with working tree changes
Modifiers
static

Parses RTF tokens into a nested syntax tree.

Inheritance

  • object
  • RtfSyntaxParser

Methods

Parse 3 overloads
public static RtfSyntaxTree Parse(string rtf) #

Parses RTF text into a syntax tree.

Parameters

rtf string required
public static RtfSyntaxTree Parse(string rtf, int maxDepth) #

Parses RTF text into a syntax tree while limiting nested group depth.

Parameters

rtf string required
maxDepth int required
public static RtfSyntaxTree Parse(string rtf, RtfLoadOptions? options, CancellationToken cancellationToken = default) #

Parses RTF text using the configured resource limits and cancellation token.

Parameters

rtf string required
options OfficeIMO.Rtf.RtfLoadOptions? required
cancellationToken System.Threading.CancellationToken = default optional