Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfLosslessEditorFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of RtfLosslessEditor, 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
  • RtfLosslessEditorFluent

Methods

public static RtfLosslessEditor AnsiCodePage(RtfLosslessEditor rtfLosslessEditor, int? codePage) #

Adds, replaces, or removes the root ANSI code page control while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
codePage int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor CharacterSet(RtfLosslessEditor rtfLosslessEditor, RtfDocumentCharacterSet characterSet, int? ansiCodePage = null) #

Sets the root document character set declaration and optionally replaces the root ANSI code page.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
characterSet OfficeIMO.Rtf.RtfDocumentCharacterSet required
The value.
ansiCodePage int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DefaultFont(RtfLosslessEditor rtfLosslessEditor, int? fontId) #

Adds, replaces, or removes the root default font id control while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
fontId int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DefaultLanguages(RtfLosslessEditor rtfLosslessEditor, int? defaultLanguageId = null, int? defaultFarEastLanguageId = null, int? defaultAlternateLanguageId = null) #

Adds, replaces, or removes root default language controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
defaultLanguageId int? = null optional
The value.
defaultFarEastLanguageId int? = null optional
The value.
defaultAlternateLanguageId int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DefaultTabWidth(RtfLosslessEditor rtfLosslessEditor, int? twips) #

Adds, replaces, or removes the root default tab width while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
twips int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DifferentFirstPageHeaderFooter(RtfLosslessEditor rtfLosslessEditor, bool enabled = true) #

Adds or removes the root different-first-page header/footer control while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
enabled bool = true optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DocumentDirection(RtfLosslessEditor rtfLosslessEditor, RtfTextDirection? direction) #

Adds, replaces, or removes the root document direction control while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
direction OfficeIMO.Rtf.RtfTextDirection? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DocumentHyphenation(RtfLosslessEditor rtfLosslessEditor, bool? automatic = null, bool? caps = null, int? consecutiveLimit = null, int? zoneTwips = null) #

Adds, replaces, or removes root document hyphenation controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
automatic bool? = null optional
The value.
caps bool? = null optional
The value.
consecutiveLimit int? = null optional
The value.
zoneTwips int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DocumentLayoutOptions(RtfLosslessEditor rtfLosslessEditor, bool? widowOrphanControl = null, bool? facingPages = null, bool? mirrorMargins = null) #

Adds, replaces, or removes root document layout option controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
widowOrphanControl bool? = null optional
The value.
facingPages bool? = null optional
The value.
mirrorMargins bool? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DocumentProtection(RtfLosslessEditor rtfLosslessEditor, bool? forms = null, bool? revisions = null, bool? annotations = null, bool? readOnly = null) #

Adds, replaces, or removes root document protection controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
forms bool? = null optional
The value.
revisions bool? = null optional
The value.
annotations bool? = null optional
The value.
readOnly bool? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DocumentView(RtfLosslessEditor rtfLosslessEditor, int? kind = null, int? scale = null, int? zoomKind = null, int? backspaceBehavior = null) #

Adds, replaces, or removes root document view controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
kind int? = null optional
The value.
scale int? = null optional
The value.
zoomKind int? = null optional
The value.
backspaceBehavior int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor DrawingGrid(RtfLosslessEditor rtfLosslessEditor, int? horizontalSpacingTwips = null, int? verticalSpacingTwips = null, int? horizontalOriginTwips = null, int? verticalOriginTwips = null, int? horizontalShow = null, int? verticalShow = null, bool? snapToGrid = null, bool? useMargins = null) #

Adds, replaces, or removes root drawing grid controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
horizontalSpacingTwips int? = null optional
The value.
verticalSpacingTwips int? = null optional
The value.
horizontalOriginTwips int? = null optional
The value.
verticalOriginTwips int? = null optional
The value.
horizontalShow int? = null optional
The value.
verticalShow int? = null optional
The value.
snapToGrid bool? = null optional
The value.
useMargins bool? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor Generator(RtfLosslessEditor rtfLosslessEditor, string? value) #

Adds, replaces, or removes the root generator metadata group while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
value string? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor GutterWidth(RtfLosslessEditor rtfLosslessEditor, int? gutterWidthTwips) #

Adds, replaces, or removes the root document gutter width while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
gutterWidthTwips int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor HeaderFooterDistance(RtfLosslessEditor rtfLosslessEditor, int? headerDistanceTwips = null, int? footerDistanceTwips = null) #

Adds, replaces, or removes root header and footer distance controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
headerDistanceTwips int? = null optional
The value.
footerDistanceTwips int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor Info(RtfLosslessEditor rtfLosslessEditor, RtfDocumentInfoField field, string? value) #

Adds, replaces, or removes a document information field while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
field OfficeIMO.Rtf.RtfDocumentInfoField required
The value.
value string? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor InfoNumber(RtfLosslessEditor rtfLosslessEditor, RtfDocumentInfoNumberField field, int? value) #

Adds, replaces, or removes a numeric document information field while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
field OfficeIMO.Rtf.RtfDocumentInfoNumberField required
The value.
value int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor InfoTimestamp(RtfLosslessEditor rtfLosslessEditor, RtfDocumentInfoTimestampField field, DateTime? value) #

Adds, replaces, or removes a document information timestamp while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
field OfficeIMO.Rtf.RtfDocumentInfoTimestampField required
The value.
value System.DateTime? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor Landscape(RtfLosslessEditor rtfLosslessEditor, bool enabled = true) #

Adds or removes the root landscape orientation control while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
enabled bool = true optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor Margins(RtfLosslessEditor rtfLosslessEditor, int? leftTwips = null, int? rightTwips = null, int? topTwips = null, int? bottomTwips = null) #

Adds, replaces, or removes root document margin controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
leftTwips int? = null optional
The value.
rightTwips int? = null optional
The value.
topTwips int? = null optional
The value.
bottomTwips int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor PageBorder(RtfLosslessEditor rtfLosslessEditor, RtfPageBorderSide side, RtfPageBorderStyle style, int? width = null, int? space = null, int? colorIndex = null, bool frame = false) #

Adds, replaces, or removes one root page-border side while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
side OfficeIMO.Rtf.RtfPageBorderSide required
The value.
style OfficeIMO.Rtf.RtfPageBorderStyle required
The value.
width int? = null optional
The value.
space int? = null optional
The value.
colorIndex int? = null optional
The value.
frame bool = false optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor PageBorderOptions(RtfLosslessEditor rtfLosslessEditor, bool? includeHeader = null, bool? includeFooter = null, bool? snapToPageBorder = null, RtfPageBorderScope? scope = null, bool? displayBehindText = null, RtfPageBorderOffset? offsetFrom = null) #

Adds, replaces, or removes root page-border option controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
includeHeader bool? = null optional
The value.
includeFooter bool? = null optional
The value.
snapToPageBorder bool? = null optional
The value.
scope OfficeIMO.Rtf.RtfPageBorderScope? = null optional
The value.
displayBehindText bool? = null optional
The value.
offsetFrom OfficeIMO.Rtf.RtfPageBorderOffset? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor PageNumbering(RtfLosslessEditor rtfLosslessEditor, int? start = null, bool? restart = null, RtfPageNumberFormat? format = null, int? positionXTwips = null, int? positionYTwips = null) #

Adds, replaces, or removes root page-numbering controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
start int? = null optional
The value.
restart bool? = null optional
The value.
format OfficeIMO.Rtf.RtfPageNumberFormat? = null optional
The value.
positionXTwips int? = null optional
The value.
positionYTwips int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor PageSize(RtfLosslessEditor rtfLosslessEditor, int? widthTwips, int? heightTwips) #

Adds, replaces, or removes root document paper size controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
widthTwips int? required
The value.
heightTwips int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor PrinterPaper(RtfLosslessEditor rtfLosslessEditor, int? paperSize = null, int? firstPageSource = null, int? otherPagesSource = null) #

Adds, replaces, or removes root printer paper metadata controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
paperSize int? = null optional
The value.
firstPageSource int? = null optional
The value.
otherPagesSource int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor RevisionRootSaveId(RtfLosslessEditor rtfLosslessEditor, int? id) #

Adds, replaces, or removes the root revision save id in the root rsidtbl destination while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
id int? required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor RevisionTracking(RtfLosslessEditor rtfLosslessEditor, bool? enabled = null, int? displayStyle = null, int? barPlacement = null) #

Adds, replaces, or removes root revision tracking controls while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
enabled bool? = null optional
The value.
displayStyle int? = null optional
The value.
barPlacement int? = null optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor RtlGutter(RtfLosslessEditor rtfLosslessEditor, bool enabled = true) #

Adds or removes the root right-to-left gutter control while preserving untouched RTF syntax.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
enabled bool = true optional
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor UnicodeSkipCount(RtfLosslessEditor rtfLosslessEditor, int? count) #

Adds, replaces, or removes the root Unicode fallback skip count while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
count int? required
The value.

Returns

RtfLosslessEditor The same instance.
UserProperty 2 overloads
public static RtfLosslessEditor UserProperty(RtfLosslessEditor rtfLosslessEditor, RtfUserProperty property) #

Adds or replaces a custom document property in the root userprops destination while preserving the rest of the RTF stream.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
property OfficeIMO.Rtf.RtfUserProperty required
The value.

Returns

RtfLosslessEditor The same instance.
public static RtfLosslessEditor UserProperty(RtfLosslessEditor rtfLosslessEditor, string name, string value) #

Adds or replaces a text custom document property in the root userprops destination.

Parameters

rtfLosslessEditor OfficeIMO.Rtf.RtfLosslessEditor required
The instance.
name string required
The value.
value string required
The value.

Returns

RtfLosslessEditor The same instance.