# RtfLosslessEditorFluent

The fluent methods of RtfLosslessEditor, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfLosslessEditor](/api/rtf/officeimo-rtf-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

Filter members 

Show inherited

## Methods

`public static RtfLosslessEditor AnsiCodePage(RtfLosslessEditor rtfLosslessEditor, int? codePage)` [#](#method-ansicodepage-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-characterset-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfdocumentcharacterset-nullable-system-int32)

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)` [#](#method-defaultfont-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-defaultlanguages-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32-nullable-system-int32)

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)` [#](#method-defaulttabwidth-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-differentfirstpageheaderfooter-officeimo-rtf-rtflosslesseditor-boolean)

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)` [#](#method-documentdirection-officeimo-rtf-rtflosslesseditor-nullable-officeimo-rtf-rtftextdirection)

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)` [#](#method-documenthyphenation-officeimo-rtf-rtflosslesseditor-nullable-system-boolean-nullable-system-boolean-nullable-system-int32-nullable-system-int32)

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)` [#](#method-documentlayoutoptions-officeimo-rtf-rtflosslesseditor-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean)

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)` [#](#method-documentprotection-officeimo-rtf-rtflosslesseditor-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean)

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)` [#](#method-documentview-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32)

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)` [#](#member-9f210e3a79516a7b5adcac02)

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)` [#](#method-generator-officeimo-rtf-rtflosslesseditor-string)

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)` [#](#method-gutterwidth-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-headerfooterdistance-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32)

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)` [#](#method-info-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfdocumentinfofield-string)

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)` [#](#method-infonumber-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfdocumentinfonumberfield-nullable-system-int32)

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)` [#](#method-infotimestamp-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfdocumentinfotimestampfield-nullable-system-datetime)

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)` [#](#method-landscape-officeimo-rtf-rtflosslesseditor-boolean)

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)` [#](#method-margins-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32)

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)` [#](#method-pageborder-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfpageborderside-officeimo-rtf-rtfpageborderstyle-nullable-system-int32-nullable-system-int32-nullable-system-int32-boolean)

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)` [#](#member-a27913dd881f523d7b5b86c9)

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)` [#](#method-pagenumbering-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-boolean-nullable-officeimo-rtf-rtfpagenumberformat-nullable-system-int32-nullable-system-int32)

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)` [#](#method-pagesize-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32)

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)` [#](#method-printerpaper-officeimo-rtf-rtflosslesseditor-nullable-system-int32-nullable-system-int32-nullable-system-int32)

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)` [#](#method-revisionrootsaveid-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-revisiontracking-officeimo-rtf-rtflosslesseditor-nullable-system-boolean-nullable-system-int32-nullable-system-int32)

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)` [#](#method-rtlgutter-officeimo-rtf-rtflosslesseditor-boolean)

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)` [#](#method-unicodeskipcount-officeimo-rtf-rtflosslesseditor-nullable-system-int32)

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)` [#](#method-userproperty-officeimo-rtf-rtflosslesseditor-officeimo-rtf-rtfuserproperty)

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)` [#](#method-userproperty-officeimo-rtf-rtflosslesseditor-string-string)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:067B4FCEE8A1C15F3766287CA628A3F99D2F615986ED9CD991FE963656B7217E -->
