Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfLoadOptions

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Options controlling RTF parsing and semantic binding.

Inheritance

  • object
  • RtfLoadOptions

Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 12

Constructors

public RtfLoadOptions() #

Methods

public static RtfLoadOptions CreateCompatibilityProfile() #

Creates 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.

Properties

public bool DeferBinaryPayloads { get; set; } #

Retains binary source slices and defers picture/object byte materialization until explicit native access or save. Default: false.

public static RtfLoadOptions UntrustedDefaults { get; } #

Creates the bounded profile for RTF received from an untrusted source. It matches the defaults: embedded OLE objects and file-table references are omitted from the semantic model.

public RtfReadLimits Limits { get; set; } #

Resource budgets applied by the tokenizer, syntax parser and semantic binder.

public bool ReadEmbeddedObjects { get; set; } #

Whether OLE object destinations are materialized in the semantic model.

public bool 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 bool WarnOnUnsupportedDestinations { get; set; } #

Whether unsupported destinations should produce warning diagnostics.

public bool WarnOnUnsupportedCodePages { get; set; } #

Whether unsupported ANSI code pages should produce warning diagnostics before falling back to Windows-1252.