• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DocumentSettings

Represents a DocumentSettings.

Inheritance
object
DocumentSettings
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class DocumentSettings

Properties

AutoHyphenation

When true, enables automatic hyphenation for the document. Maps to <w:autoHyphenation/> in settings.xml.

Declaration
public bool AutoHyphenation { get; set; }
Property Value
Type Description
bool

CharacterSpacingControl

Gets or sets character spacing control.

Declaration
public string CharacterSpacingControl { get; set; }
Property Value
Type Description
string

CompatibilityMode

Gets or sets compatibility mode.

Declaration
public int CompatibilityMode { get; set; }
Property Value
Type Description
int

ConsecutiveHyphenLimit

Maximum number of consecutive lines that can end with a hyphen. A value of 0 means no limit. Maps to <w:consecutiveHyphenLimit/>.

Declaration
public int ConsecutiveHyphenLimit { get; set; }
Property Value
Type Description
int

DecimalSymbol

Gets or sets decimal symbol.

Declaration
public string DecimalSymbol { get; set; }
Property Value
Type Description
string

DefaultTabStop

Gets or sets default tab stop.

Declaration
public int DefaultTabStop { get; set; }
Property Value
Type Description
int

DoNotHyphenateCaps

When true, words in all capital letters are not hyphenated. Maps to <w:doNotHyphenateCaps/>.

Declaration
public bool DoNotHyphenateCaps { get; set; }
Property Value
Type Description
bool

DoNotIncludeSubdocsInStats

Gets or sets whether subdocuments are excluded from document statistics.

Declaration
public bool DoNotIncludeSubdocsInStats { get; set; }
Property Value
Type Description
bool

DocumentId14

Gets or sets document id14.

Declaration
public string DocumentId14 { get; set; }
Property Value
Type Description
string

DocumentId15

Gets or sets document id15.

Declaration
public string DocumentId15 { get; set; }
Property Value
Type Description
string

EvenAndOddHeaders

Gets or sets whether the settings part enables even and odd page headers.

Declaration
public bool EvenAndOddHeaders { get; set; }
Property Value
Type Description
bool

HyphenationZone

Hyphenation zone in twips (1/20 of a point). Maps to <w:hyphenationZone/>.

Declaration
public int HyphenationZone { get; set; }
Property Value
Type Description
int

ListSeparator

Gets or sets list separator.

Declaration
public string ListSeparator { get; set; }
Property Value
Type Description
string

MathFont

Gets or sets math font.

Declaration
public string MathFont { get; set; }
Property Value
Type Description
string

NoPunctuationKerning

Gets or sets whether punctuation kerning is disabled.

Declaration
public bool NoPunctuationKerning { get; set; }
Property Value
Type Description
bool

ProofStateGrammar

Gets or sets the proofing grammar state written to settings.xml.

Declaration
public string ProofStateGrammar { get; set; }
Property Value
Type Description
string

ProofStateSpelling

Gets or sets the proofing spelling state written to settings.xml.

Declaration
public string ProofStateSpelling { get; set; }
Property Value
Type Description
string

Protection

Gets the document protection settings. Use StartEnforcingProtection(DocumentProtectionType, string) to restrict editing. Maps to <w:documentProtection> in settings.xml.

Declaration
public DocumentProtection Protection { get; }
Property Value
Type Description
DocumentProtection

StylePaneFormatFilter

Gets or sets the style-pane format filter written to settings.xml.

Declaration
public string StylePaneFormatFilter { get; set; }
Property Value
Type Description
string

ThemeFontLanguages

Gets or sets theme font languages.

Declaration
public string ThemeFontLanguages { get; set; }
Property Value
Type Description
string

TrackRevisions

When true, Word tracks all edits as revisions. Maps to <w:trackRevisions/> in settings.xml.

Declaration
public bool TrackRevisions { get; set; }
Property Value
Type Description
bool

UpdateFields

When true, Word will update fields (e.g. TOC, PAGEREF) when the document is opened.

Declaration
public bool UpdateFields { get; set; }
Property Value
Type Description
bool

WriteProtection

Gets the write-protection settings. Use SetPassword(string) to set a write-protection password and Recommended to recommend read-only mode. Maps to <w:writeProtection> in settings.xml.

Declaration
public WriteProtection WriteProtection { get; }
Property Value
Type Description
WriteProtection

Zoom

Gets or sets zoom.

Declaration
public int Zoom { get; set; }
Property Value
Type Description
int
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX