Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordSettingsFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of WordSettings, 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
  • WordSettingsFluent

Methods

BackgroundColor``1 2 overloads
public static TSelf BackgroundColor<TSelf>(TSelf wordSettings, OfficeColor backgroundColor) #

Sets the document's background color.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
backgroundColor OfficeIMO.OfficeColor required
Color value.

Returns

TSelf The same instance.
public static TSelf BackgroundColor<TSelf>(TSelf wordSettings, OfficeColor? value) #

Sets WordSettings.BackgroundColor: Gets or sets the default background color. Automatic color reads as null.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property            // C# fluent
wordSettings.BackgroundColor = value;    wordSettings.BackgroundColor(value);
public static TSelf CharacterSpacingControl<TSelf>(TSelf wordSettings, WordCharacterSpacing? value) #

Sets WordSettings.CharacterSpacingControl: Gets or sets character spacing control.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.Word.WordCharacterSpacing? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
wordSettings.CharacterSpacingControl = value;    wordSettings.CharacterSpacingControl(value);
public static TSelf DecimalSymbol<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.DecimalSymbol: Gets or sets the document's decimal separator, including decimal tab alignment.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property          // C# fluent
wordSettings.DecimalSymbol = value;    wordSettings.DecimalSymbol(value);
public static TSelf DefaultTabStop<TSelf>(TSelf wordSettings, int value) #

Sets WordSettings.DefaultTabStop: Gets or sets the default tab stop, in twentieths of a point.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value int required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property           // C# fluent
wordSettings.DefaultTabStop = value;    wordSettings.DefaultTabStop(value);
public static TSelf FinalDocument<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.FinalDocument: Gets or sets whether the document is marked as final. Word notifies users that a finalized document should be treated as read-only.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property          // C# fluent
wordSettings.FinalDocument = value;    wordSettings.FinalDocument(value);
public static TSelf FontFamilyComplexScript<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.FontFamilyComplexScript: Gets or sets the default complex-script font family.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                    // C# fluent
wordSettings.FontFamilyComplexScript = value;    wordSettings.FontFamilyComplexScript(value);
public static TSelf FontFamilyEastAsia<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.FontFamilyEastAsia: Gets or sets the default East Asian font family.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property               // C# fluent
wordSettings.FontFamilyEastAsia = value;    wordSettings.FontFamilyEastAsia(value);
public static TSelf FontFamilyHighAnsi<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.FontFamilyHighAnsi: Gets or sets the default High ANSI font family.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property               // C# fluent
wordSettings.FontFamilyHighAnsi = value;    wordSettings.FontFamilyHighAnsi(value);
public static TSelf FontFamily<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.FontFamily: Gets the default ASCII font family or sets all four font families.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
wordSettings.FontFamily = value;    wordSettings.FontFamily(value);
public static TSelf FontSizeComplexScript<TSelf>(TSelf wordSettings, OfficeLength? value) #

Sets WordSettings.FontSizeComplexScript: Gets or sets the default font size for complex-script text.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                  // C# fluent
wordSettings.FontSizeComplexScript = value;    wordSettings.FontSizeComplexScript(value);
public static TSelf FontSize<TSelf>(TSelf wordSettings, OfficeLength? value) #

Sets WordSettings.FontSize: Gets or sets the document's default font size.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property     // C# fluent
wordSettings.FontSize = value;    wordSettings.FontSize(value);
public static TSelf GutterAtTop<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.GutterAtTop: Gets or sets whether the document gutter is placed at the top of each page.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property        // C# fluent
wordSettings.GutterAtTop = value;    wordSettings.GutterAtTop(value);
public static TSelf Language<TSelf>(TSelf wordSettings, string? value) #

Sets WordSettings.Language: Gets or sets the document's default language.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property     // C# fluent
wordSettings.Language = value;    wordSettings.Language(value);
public static TSelf MirrorMargins<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.MirrorMargins: Gets or sets whether odd and even pages use mirrored inside/outside margins.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property          // C# fluent
wordSettings.MirrorMargins = value;    wordSettings.MirrorMargins(value);
public static TSelf ProtectionPassword<TSelf>(TSelf wordSettings, string value) #

Sets WordSettings.ProtectionPassword: Sets the password for the document's editing restrictions.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value string required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property               // C# fluent
wordSettings.ProtectionPassword = value;    wordSettings.ProtectionPassword(value);
ProtectionType``1 2 overloads
public static TSelf ProtectionType<TSelf>(TSelf wordSettings, WordDocumentProtectionType protectionType) #

Sets document protection using an OfficeIMO-owned value.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
protectionType OfficeIMO.Word.WordDocumentProtectionType required
The value.

Returns

TSelf The same instance.
public static TSelf ProtectionType<TSelf>(TSelf wordSettings, WordDocumentProtectionType? value) #

Sets WordSettings.ProtectionType: Gets or sets the editing restrictions for the document.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.Word.WordDocumentProtectionType? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property           // C# fluent
wordSettings.ProtectionType = value;    wordSettings.ProtectionType(value);
public static TSelf ReadOnlyRecommended<TSelf>(TSelf wordSettings, bool? value = true) #

Sets WordSettings.ReadOnlyRecommended: Gets or sets whether Word recommends opening the document as read-only.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool? = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                // C# fluent
wordSettings.ReadOnlyRecommended = value;    wordSettings.ReadOnlyRecommended(value);
public static TSelf TrackFormatting<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.TrackFormatting: Gets or sets whether Word tracks formatting changes.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property            // C# fluent
wordSettings.TrackFormatting = value;    wordSettings.TrackFormatting(value);
public static TSelf TrackMoves<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.TrackMoves: Gets or sets whether Word tracks move operations.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
wordSettings.TrackMoves = value;    wordSettings.TrackMoves(value);
public static TSelf TrackRevisions<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.TrackRevisions: Gets or sets whether Word tracks revisions.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property           // C# fluent
wordSettings.TrackRevisions = value;    wordSettings.TrackRevisions(value);
public static TSelf UpdateFieldsOnOpen<TSelf>(TSelf wordSettings, bool value = true) #

Sets WordSettings.UpdateFieldsOnOpen: Tells Word to update fields when opening the document. Without this option the document fields require a manual refresh.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property               // C# fluent
wordSettings.UpdateFieldsOnOpen = value;    wordSettings.UpdateFieldsOnOpen(value);
public static TSelf ZoomPercentage<TSelf>(TSelf wordSettings, int? value) #

Sets WordSettings.ZoomPercentage: Gets or sets the zoom percentage.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property           // C# fluent
wordSettings.ZoomPercentage = value;    wordSettings.ZoomPercentage(value);
public static TSelf ZoomPreset<TSelf>(TSelf wordSettings, WordZoomPreset? value) #

Sets WordSettings.ZoomPreset: Gets or sets the zoom preset.

Type Parameters

TSelf

Parameters

wordSettings TSelf required
The instance.
value OfficeIMO.Word.WordZoomPreset? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property       // C# fluent
wordSettings.ZoomPreset = value;    wordSettings.ZoomPreset(value);