Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfSyntaxParser

Namespace OfficeIMO.Rtf.Syntax
Assembly OfficeIMO.Rtf
Modifiers static

Parses RTF tokens into a nested syntax tree.

Inheritance

  • Object
  • RtfSyntaxParser

Methods

Parse 3 overloads
public static RtfSyntaxTree Parse(String rtf) #
Returns: RtfSyntaxTree

Parses RTF text into a syntax tree.

Parameters

rtf System.String requiredposition: 0
public static RtfSyntaxTree Parse(String rtf, Int32 maxDepth) #
Returns: RtfSyntaxTree

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

Parameters

rtf System.String requiredposition: 0
maxDepth System.Int32 requiredposition: 1
public static RtfSyntaxTree Parse(String rtf, RtfReadOptions options, CancellationToken cancellationToken = default) #
Returns: RtfSyntaxTree

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

Parameters

rtf System.String requiredposition: 0
options OfficeIMO.Rtf.RtfReadOptions requiredposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2