API Reference
RtfReadOptions
Options controlling RTF parsing and semantic binding.
Inheritance
- Object
- RtfReadOptions
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
Accepted by parameters
- Method RtfDocument.InspectContentSafety
- Method RtfDocument.InspectContentSafety
- Method RtfDocument.Load
- Method RtfDocument.Load
- Method RtfDocument.Load
- Method RtfDocument.LoadAsync
- Method RtfDocument.LoadAsync
- Method RtfDocument.LoadResult
- Method RtfDocument.LoadResult
- Method RtfDocument.LoadResult
- Method RtfDocument.LoadResultAsync
- Method RtfDocument.LoadResultAsync
- Method RtfDocument.Parse
- Method RtfDocument.ParseResult
- Method RtfDocument.Read
- Method RtfDocument.Read
- Method RtfDocument.RemoveSelectedContent
- Method RtfDocument.RemoveSelectedContent
- Method RtfLosslessEditor.ToReadResult
- Method RtfSyntaxParser.Parse
- Method RtfSyntaxTree.Parse
- Method RtfTokenizer.Tokenize
Constructors
public RtfReadOptions() #Methods
public static RtfReadOptions CreateCompatibilityProfile() #RtfReadOptionsCreates the former permissive compatibility profile. This profile has no size or count limits, materializes embedded objects and file references, and accepts every hyperlink scheme. Use it only for trusted inputs when preserving legacy behavior is more important than bounded ingestion.
public static RtfReadOptions CreateOfficeIMOProfile() #RtfReadOptionsCreates the bounded OfficeIMO profile used by default.
public static RtfReadOptions CreateUntrustedProfile() #RtfReadOptionsCreates a conservative bounded profile for RTF received from an untrusted source. Embedded OLE objects and file-table references are omitted from the semantic model.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Int32 MaxDepth { get; set; } #Maximum nested group depth accepted by the syntax parser and semantic binder.
public Nullable<Int64> MaxInputBytes { get; set; } #Maximum source bytes accepted by byte, file, and stream APIs.
public Nullable<Int32> MaxInputCharacters { get; set; } #Maximum source characters accepted before tokenization.
public Nullable<Int32> MaxTokenCount { get; set; } #Maximum number of tokenizer output tokens, including the end-of-file token.
public Nullable<Int32> MaxGroupCount { get; set; } #Maximum number of source groups.
public Nullable<Int64> MaxTextCharacters { get; set; } #Maximum total number of source text characters represented by text tokens.
public Nullable<Int32> MaxBinaryBytesPerPayload { get; set; } #Maximum bytes in one \bin payload.
public Nullable<Int64> MaxTotalBinaryBytes { get; set; } #Maximum total bytes across \bin payloads.
public Nullable<Int32> MaxImageCount { get; set; } #Maximum number of semantic images.
public Nullable<Int32> MaxImageBytesPerImage { get; set; } #Maximum decoded bytes in one semantic image.
public Nullable<Int64> MaxTotalImageBytes { get; set; } #Maximum decoded bytes across semantic images.
public Nullable<Int32> MaxObjectCount { get; set; } #Maximum number of semantic embedded or linked objects.
public Nullable<Int32> MaxObjectBytesPerObject { get; set; } #Maximum decoded bytes in one semantic object.
public Nullable<Int64> MaxTotalObjectBytes { get; set; } #Maximum decoded bytes across semantic objects.
public Nullable<Int32> MaxSemanticBlockCount { get; set; } #Maximum number of semantic document blocks produced by binding.
public Boolean ReadEmbeddedObjects { get; set; } #Whether OLE object destinations are materialized in the semantic model.
public Boolean ReadFileReferences { get; set; } #Whether file-table destinations are materialized in the semantic model.
public RtfHyperlinkReadPolicy HyperlinkPolicy { get; set; } #Controls hyperlink field targets materialized in the semantic model.
public Boolean WarnOnUnsupportedDestinations { get; set; } #Whether unsupported destinations should produce warning diagnostics.
public Boolean WarnOnUnsupportedCodePages { get; set; } #Whether unsupported ANSI code pages should produce warning diagnostics before falling back to Windows-1252.