RtfLoadOptions
OfficeIMO.Rtf
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.
Returned or exposed by 2
Accepted by parameters 12
- Method RtfDocument.InspectContentSafety
- Method RtfDocument.Load
- Method RtfDocument.LoadAsync
- Method RtfDocument.LoadResult
- Method RtfDocument.LoadResultAsync
- Method RtfDocument.Parse
- Method RtfDocument.ParseResult
- Method RtfDocument.RemoveSelectedContent
- Method RtfLosslessEditor.ToReadResult
- Method RtfSyntaxParser.Parse
- Method RtfSyntaxTree.Parse
- Method RtfTokenizer.Tokenize
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.
Returns
RtfLoadOptionsInherited Methods
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.