Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfLoadOptionsFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfLoadOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • RtfLoadOptionsFluent

Methods

public static RtfLoadOptions DeferBinaryPayloads(RtfLoadOptions rtfLoadOptions, bool value = true) #

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

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { DeferBinaryPayloads = value };    rtfLoadOptions.DeferBinaryPayloads(value);
public static RtfLoadOptions HyperlinkPolicy(RtfLoadOptions rtfLoadOptions, RtfHyperlinkReadPolicy value) #

Sets RtfLoadOptions.HyperlinkPolicy: Controls hyperlink field targets materialized in the semantic model.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value OfficeIMO.Rtf.RtfHyperlinkReadPolicy required
The value.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { HyperlinkPolicy = value };    rtfLoadOptions.HyperlinkPolicy(value);
Limits 2 overloads
public static RtfLoadOptions Limits(RtfLoadOptions rtfLoadOptions, RtfReadLimits value) #

Sets RtfLoadOptions.Limits: Resource budgets applied by the tokenizer, syntax parser and semantic binder.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value OfficeIMO.Rtf.RtfReadLimits required
The value.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { Limits = value };    rtfLoadOptions.Limits(value);
public static RtfLoadOptions Limits(RtfLoadOptions rtfLoadOptions, Action<RtfReadLimits> configure) #

Configures RtfLoadOptions.Limits in place (creating it when not set): Resource budgets applied by the tokenizer, syntax parser and semantic binder.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfReadLimits> required
Configures the value.

Returns

RtfLoadOptions The same instance.
public static RtfLoadOptions ReadEmbeddedObjects(RtfLoadOptions rtfLoadOptions, bool value = true) #

Sets RtfLoadOptions.ReadEmbeddedObjects: Whether OLE object destinations are materialized in the semantic model.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { ReadEmbeddedObjects = value };    rtfLoadOptions.ReadEmbeddedObjects(value);
public static RtfLoadOptions ReadFileReferences(RtfLoadOptions rtfLoadOptions, bool value = true) #

Sets RtfLoadOptions.ReadFileReferences: Whether file-table destinations are materialized in the semantic model.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { ReadFileReferences = value };    rtfLoadOptions.ReadFileReferences(value);
public static RtfLoadOptions WarnOnUnsupportedCodePages(RtfLoadOptions rtfLoadOptions, bool value = true) #

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

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { WarnOnUnsupportedCodePages = value };    rtfLoadOptions.WarnOnUnsupportedCodePages(value);
public static RtfLoadOptions WarnOnUnsupportedDestinations(RtfLoadOptions rtfLoadOptions, bool value = true) #

Sets RtfLoadOptions.WarnOnUnsupportedDestinations: Whether unsupported destinations should produce warning diagnostics.

Parameters

rtfLoadOptions OfficeIMO.Rtf.RtfLoadOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

RtfLoadOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Rtf.RtfLoadOptions { WarnOnUnsupportedDestinations = value };    rtfLoadOptions.WarnOnUnsupportedDestinations(value);