API Reference
Class
RtfSyntaxTree
Loss-preserving RTF syntax tree produced from tokens.
Inheritance
- Object
- RtfSyntaxTree
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property RtfLosslessEditor.SyntaxTree
- Property RtfReadResult.SyntaxTree
- Method RtfSyntaxParser.Parse
- Method RtfSyntaxParser.Parse
- Method RtfSyntaxParser.Parse
- Method RtfSyntaxTree.Parse
- Method RtfSyntaxTree.Parse
- Method RtfSyntaxTree.Parse
Accepted by parameters
- Constructor RtfLosslessEditor.RtfLosslessEditor
- Method RtfSyntaxWriter.Write
Methods
public RtfLosslessEditor EditLossless() #Returns:
RtfLosslessEditorCreates an editor for targeted syntax-preserving changes.
Parse 3 overloads
public static RtfSyntaxTree Parse(String rtf) #Returns:
RtfSyntaxTreeParses RTF content into a syntax tree.
Parameters
- rtf System.String
public static RtfSyntaxTree Parse(String rtf, Int32 maxDepth) #Returns:
RtfSyntaxTreeParses RTF content into a syntax tree while limiting nested group depth.
Parameters
- rtf System.String
- maxDepth System.Int32
public static RtfSyntaxTree Parse(String rtf, RtfReadOptions options, CancellationToken cancellationToken = default) #Returns:
RtfSyntaxTreeParses RTF content using configured resource limits and cancellation.
Parameters
- rtf System.String
- options OfficeIMO.Rtf.RtfReadOptions
- cancellationToken System.Threading.CancellationToken = default
public String ToRtf() #Returns:
StringSerializes the original syntax tree without semantic normalization.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object