# RtfDocumentSettings

Document-level RTF settings that are not tied to page setup or body content.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfDocumentSettings.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L123)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

Document-level RTF settings that are not tied to page setup or body content.

## Inheritance

- object
- RtfDocumentSettings

## 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 14

- Property [RtfDocument.Settings](/api/rtf/officeimo-rtf-rtfdocument/#property-settings)
- Method [RtfDocumentSettings.SetCharacterSet](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setcharacterset-officeimo-rtf-rtfdocumentcharacterset-nullable-system-int32)
- Method [RtfDocumentSettings.SetDefaultAlternateLanguage](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdefaultalternatelanguage-int32)
- Method [RtfDocumentSettings.SetDefaultFarEastLanguage](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdefaultfareastlanguage-int32)
- Method [RtfDocumentSettings.SetDefaultFont](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdefaultfont-int32)
- Method [RtfDocumentSettings.SetDefaultLanguage](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdefaultlanguage-int32)
- Method [RtfDocumentSettings.SetDefaultTabWidth](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdefaulttabwidth-int32)
- Method [RtfDocumentSettings.SetDirection](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdirection-nullable-officeimo-rtf-rtftextdirection)
- Method [RtfDocumentSettings.SetDrawingGrid](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setdrawinggrid-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-boolean-nullable-system-boolean)
- Method [RtfDocumentSettings.SetHyphenation](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-sethyphenation-nullable-system-boolean-nullable-system-boolean-nullable-system-int32-nullable-system-int32)
- Method [RtfDocumentSettings.SetProtection](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setprotection-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean)
- Method [RtfDocumentSettings.SetRevisionTracking](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setrevisiontracking-nullable-system-boolean-nullable-system-int32-nullable-system-int32)
- Method [RtfDocumentSettings.SetUnicodeSkipCount](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setunicodeskipcount-int32)
- Method [RtfDocumentSettings.SetView](/api/rtf/officeimo-rtf-rtfdocumentsettings/#method-setview-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32)

Filter members 

Show inherited

## Constructors

`public RtfDocumentSettings()` [#](#constructor-ctor)

## Methods

`public RtfDocumentSettings SetCharacterSet(RtfDocumentCharacterSet characterSet, int? ansiCodePage = null)` [#](#method-setcharacterset-officeimo-rtf-rtfdocumentcharacterset-nullable-system-int32)

[RtfDocumentSettings.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L130)

Sets the document character set declaration and optional ANSI code page.

Parameters

**characterSet OfficeIMO.Rtf.RtfDocumentCharacterSet required**

**ansiCodePage int? = null optional**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDefaultAlternateLanguage(int languageId)` [#](#method-setdefaultalternatelanguage-int32)

[RtfDocumentSettings.cs:168](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L168)

Sets the default alternate document language LCID.

Parameters

**languageId int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDefaultFarEastLanguage(int languageId)` [#](#method-setdefaultfareastlanguage-int32)

[RtfDocumentSettings.cs:161](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L161)

Sets the default Far East document language LCID.

Parameters

**languageId int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDefaultFont(int fontId)` [#](#method-setdefaultfont-int32)

[RtfDocumentSettings.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L138)

Sets the default font id from the document font table.

Parameters

**fontId int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDefaultLanguage(int languageId)` [#](#method-setdefaultlanguage-int32)

[RtfDocumentSettings.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L154)

Sets the default document language LCID.

Parameters

**languageId int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDefaultTabWidth(int twips)` [#](#method-setdefaulttabwidth-int32)

[RtfDocumentSettings.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L123)

Sets the default tab width in twips.

Parameters

**twips int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDirection(RtfTextDirection? direction)` [#](#method-setdirection-nullable-officeimo-rtf-rtftextdirection)

[RtfDocumentSettings.cs:245](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L245)

Sets the document default text direction.

Parameters

**direction OfficeIMO.Rtf.RtfTextDirection? required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetDrawingGrid(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-3614892d15f9d996c718dee4)

[RtfDocumentSettings.cs:226](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L226)

Sets document-level drawing grid controls.

Parameters

**horizontalSpacingTwips int? = null optional**

**verticalSpacingTwips int? = null optional**

**horizontalOriginTwips int? = null optional**

**verticalOriginTwips int? = null optional**

**horizontalShow int? = null optional**

**verticalShow int? = null optional**

**snapToGrid bool? = null optional**

**useMargins bool? = null optional**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetHyphenation(bool? automatic = null, bool? caps = null, int? consecutiveLimit = null, int? zoneTwips = null)` [#](#method-sethyphenation-nullable-system-boolean-nullable-system-boolean-nullable-system-int32-nullable-system-int32)

[RtfDocumentSettings.cs:188](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L188)

Sets document-level automatic hyphenation controls.

Parameters

**automatic bool? = null optional**

**caps bool? = null optional**

**consecutiveLimit int? = null optional**

**zoneTwips int? = null optional**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetProtection(bool? forms = null, bool? revisions = null, bool? annotations = null, bool? readOnly = null)` [#](#method-setprotection-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean)

[RtfDocumentSettings.cs:199](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L199)

Sets protection-related flags.

Parameters

**forms bool? = null optional**

**revisions bool? = null optional**

**annotations bool? = null optional**

**readOnly bool? = null optional**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetRevisionTracking(bool? enabled = null, int? displayStyle = null, int? barPlacement = null)` [#](#method-setrevisiontracking-nullable-system-boolean-nullable-system-int32-nullable-system-int32)

[RtfDocumentSettings.cs:208](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L208)

Sets revision-marking display controls.

Parameters

**enabled bool? = null optional**

**displayStyle int? = null optional**

**barPlacement int? = null optional**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetUnicodeSkipCount(int count)` [#](#method-setunicodeskipcount-int32)

[RtfDocumentSettings.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L145)

Sets the document default alternate character count after Unicode escapes (0 through 8).

Parameters

**count int required**

Returns

`RtfDocumentSettings`

`public RtfDocumentSettings SetView(int? kind = null, int? scale = null, int? zoomKind = null, int? backspaceBehavior = null)` [#](#method-setview-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32)

[RtfDocumentSettings.cs:175](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L175)

Sets the document view controls.

Parameters

**kind int? = null optional**

**scale int? = null optional**

**zoomKind int? = null optional**

**backspaceBehavior int? = null optional**

Returns

`RtfDocumentSettings`

## 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?`

## Properties

`public RtfDocumentCharacterSet? CharacterSet { get; set; }` [#](#property-characterset)

[RtfDocumentSettings.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L8)

Document character set declaration represented by \ansi, \mac, \pc, or \pca.

`public int? AnsiCodePage { get; set; }` [#](#property-ansicodepage)

[RtfDocumentSettings.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L11)

ANSI code page represented by \ansicpg.

`public int? UnicodeSkipCount { get; set; }` [#](#property-unicodeskipcount)

[RtfDocumentSettings.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L14)

Default alternate character count after Unicode escapes, represented by \uc.

`public int? DefaultFontId { get; set; }` [#](#property-defaultfontid)

[RtfDocumentSettings.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L17)

Default font id represented by \deff.

`public int? DefaultTabWidthTwips { get; set; }` [#](#property-defaulttabwidthtwips)

[RtfDocumentSettings.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L20)

Default tab width in twips, represented by \deftab.

`public int? DefaultLanguageId { get; set; }` [#](#property-defaultlanguageid)

[RtfDocumentSettings.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L23)

Default document language LCID represented by \deflang.

`public int? DefaultFarEastLanguageId { get; set; }` [#](#property-defaultfareastlanguageid)

[RtfDocumentSettings.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L26)

Default Far East language LCID represented by \deflangfe.

`public int? DefaultAlternateLanguageId { get; set; }` [#](#property-defaultalternatelanguageid)

[RtfDocumentSettings.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L29)

Default alternate language LCID represented by \adeflang.

`public int? ViewKind { get; set; }` [#](#property-viewkind)

[RtfDocumentSettings.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L32)

View kind value represented by \viewkind.

`public int? ViewScale { get; set; }` [#](#property-viewscale)

[RtfDocumentSettings.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L35)

View scale percentage represented by \viewscale.

`public int? ZoomKind { get; set; }` [#](#property-zoomkind)

[RtfDocumentSettings.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L38)

Zoom kind value represented by \viewzk.

`public int? ViewBackspaceBehavior { get; set; }` [#](#property-viewbackspacebehavior)

[RtfDocumentSettings.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L41)

View backspace behavior represented by \viewbksp.

`public bool? WidowOrphanControl { get; set; }` [#](#property-widoworphancontrol)

[RtfDocumentSettings.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L44)

Whether widow/orphan control is explicitly enabled or disabled.

`public bool? AutoHyphenation { get; set; }` [#](#property-autohyphenation)

[RtfDocumentSettings.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L47)

Whether automatic hyphenation is explicitly enabled or disabled.

`public bool? HyphenateCaps { get; set; }` [#](#property-hyphenatecaps)

[RtfDocumentSettings.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L50)

Whether words in all caps may be hyphenated, represented by \hyphcaps.

`public int? ConsecutiveHyphenLimit { get; set; }` [#](#property-consecutivehyphenlimit)

[RtfDocumentSettings.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L53)

Maximum number of consecutive hyphenated lines represented by \hyphconsec.

`public int? HyphenationZoneTwips { get; set; }` [#](#property-hyphenationzonetwips)

[RtfDocumentSettings.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L56)

Hyphenation hot zone in twips represented by \hyphhotz.

`public bool? FacingPages { get; set; }` [#](#property-facingpages)

[RtfDocumentSettings.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L59)

Whether facing pages are explicitly enabled or disabled.

`public bool? MirrorMargins { get; set; }` [#](#property-mirrormargins)

[RtfDocumentSettings.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L62)

Whether mirrored margins are explicitly enabled or disabled.

`public bool? FormProtection { get; set; }` [#](#property-formprotection)

[RtfDocumentSettings.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L65)

Whether form protection is explicitly enabled or disabled.

`public bool? RevisionProtection { get; set; }` [#](#property-revisionprotection)

[RtfDocumentSettings.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L68)

Whether revision protection is explicitly enabled or disabled.

`public bool? AnnotationProtection { get; set; }` [#](#property-annotationprotection)

[RtfDocumentSettings.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L71)

Whether annotation protection is explicitly enabled or disabled.

`public bool? ReadOnlyProtection { get; set; }` [#](#property-readonlyprotection)

[RtfDocumentSettings.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L74)

Whether read-only protection is explicitly enabled or disabled.

`public bool HasEditingProtection { get; }` [#](#property-haseditingprotection)

[RtfDocumentSettings.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L78)

Whether any RTF editing-protection flag is enabled.

`public bool IsContentEncrypted { get; }` [#](#property-iscontentencrypted)

[RtfDocumentSettings.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L83)

Whether this model represents encrypted RTF content.

`public bool? TrackRevisions { get; set; }` [#](#property-trackrevisions)

[RtfDocumentSettings.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L86)

Whether revision marking is enabled, represented by \revisions.

`public int? RevisionDisplayStyle { get; set; }` [#](#property-revisiondisplaystyle)

[RtfDocumentSettings.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L89)

Revision text display style represented by \revprop.

`public int? RevisionBarPlacement { get; set; }` [#](#property-revisionbarplacement)

[RtfDocumentSettings.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L92)

Revision bar placement represented by \revbar.

`public int? DrawingGridHorizontalSpacingTwips { get; set; }` [#](#property-drawinggridhorizontalspacingtwips)

[RtfDocumentSettings.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L95)

Drawing grid horizontal spacing represented by \dghspace.

`public int? DrawingGridVerticalSpacingTwips { get; set; }` [#](#property-drawinggridverticalspacingtwips)

[RtfDocumentSettings.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L98)

Drawing grid vertical spacing represented by \dgvspace.

`public int? DrawingGridHorizontalOriginTwips { get; set; }` [#](#property-drawinggridhorizontalorigintwips)

[RtfDocumentSettings.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L101)

Drawing grid horizontal origin represented by \dghorigin.

`public int? DrawingGridVerticalOriginTwips { get; set; }` [#](#property-drawinggridverticalorigintwips)

[RtfDocumentSettings.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L104)

Drawing grid vertical origin represented by \dgvorigin.

`public int? DrawingGridHorizontalShow { get; set; }` [#](#property-drawinggridhorizontalshow)

[RtfDocumentSettings.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L107)

Drawing grid horizontal display frequency represented by \dghshow.

`public int? DrawingGridVerticalShow { get; set; }` [#](#property-drawinggridverticalshow)

[RtfDocumentSettings.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L110)

Drawing grid vertical display frequency represented by \dgvshow.

`public bool? SnapToDrawingGrid { get; set; }` [#](#property-snaptodrawinggrid)

[RtfDocumentSettings.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L113)

Whether drawing objects snap to the document grid, represented by \dgsnap.

`public bool? DrawingGridUsesMargins { get; set; }` [#](#property-drawinggridusesmargins)

[RtfDocumentSettings.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L116)

Whether drawing grid origin uses page margins, represented by \dgmargin.

`public RtfTextDirection? Direction { get; set; }` [#](#property-direction)

[RtfDocumentSettings.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.cs#L119)

Document default text direction represented by \ltrdoc or \rtldoc.

`public RtfNoteMode? NoteMode { get; set; }` [#](#property-notemode)

[RtfDocumentSettings.Notes.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfDocumentSettings.Notes.cs#L9)

Gets or sets the declared document note mode. Null retains the applicable parsed or authored default.

<!-- PowerForge markdown artifact sha256:7351DC4C7ED4EB78F3CA1D6406447398190FC0A2A9C0E0F8922EE18ADE8DD6AF -->
