Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordRtfExportOptionsFluent

OfficeIMO.Word.Rtf

Namespace
OfficeIMO.Word.Rtf
Assembly
OfficeIMO.Word.Rtf
Modifiers
static

The fluent methods of WordRtfExportOptions, 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
  • WordRtfExportOptionsFluent

Methods

public static WordRtfExportOptions Encoding(WordRtfExportOptions wordRtfExportOptions, Encoding? value) #

Sets WordRtfExportOptions.Encoding: Encoding used when the RTF is saved. Null uses the RTF writer default.

Parameters

wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required
The instance.
value System.Text.Encoding? required
The value.

Returns

WordRtfExportOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { Encoding = value };    wordRtfExportOptions.Encoding(value);
public static WordRtfExportOptions FailOnLoss(WordRtfExportOptions wordRtfExportOptions, bool value = true) #

Sets WordRtfExportOptions.FailOnLoss: Throws OfficeConversionException when the conversion reports loss.

Parameters

wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

WordRtfExportOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { FailOnLoss = value };    wordRtfExportOptions.FailOnLoss(value);
SaveOptions 2 overloads
public static WordRtfExportOptions SaveOptions(WordRtfExportOptions wordRtfExportOptions, RtfSaveOptions? value) #

Sets WordRtfExportOptions.SaveOptions: RTF writer settings used when the converted document is saved.

Parameters

wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required
The instance.
value OfficeIMO.Rtf.RtfSaveOptions? required
The value.

Returns

WordRtfExportOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Word.Rtf.WordRtfExportOptions { SaveOptions = value };    wordRtfExportOptions.SaveOptions(value);
public static WordRtfExportOptions SaveOptions(WordRtfExportOptions wordRtfExportOptions, Action<RtfSaveOptions> configure) #

Configures WordRtfExportOptions.SaveOptions in place (creating it when not set): RTF writer settings used when the converted document is saved.

Parameters

wordRtfExportOptions OfficeIMO.Word.Rtf.WordRtfExportOptions required
The instance.
configure System.Action<OfficeIMO.Rtf.RtfSaveOptions> required
Configures the value.

Returns

WordRtfExportOptions The same instance.