# WordCreateOptionsFluent

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordCreateOptions](/api/word/officeimo-word-wordcreateoptions/), 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
- WordCreateOptionsFluent

Filter members 

Show inherited

## Methods

`public static WordCreateOptions DocumentType(WordCreateOptions wordCreateOptions, WordDocumentType value)` [#](#method-documenttype-officeimo-word-wordcreateoptions-officeimo-word-worddocumenttype)

Sets [WordCreateOptions.DocumentType](/api/word/officeimo-word-wordcreateoptions/): Controls the Open XML package type when no destination extension is available.

Parameters

**wordCreateOptions OfficeIMO.Word.WordCreateOptions required**

The instance.

**value OfficeIMO.Word.WordDocumentType required**

The value.

Returns

`WordCreateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Word.WordCreateOptions { DocumentType = value };    wordCreateOptions.DocumentType(value);
```

`public static WordCreateOptions PersistenceMode(WordCreateOptions wordCreateOptions, DocumentPersistenceMode value)` [#](#method-persistencemode-officeimo-word-wordcreateoptions-officeimo-documentpersistencemode)

Sets DocumentCreateOptions.PersistenceMode.

Parameters

**wordCreateOptions OfficeIMO.Word.WordCreateOptions required**

The instance.

**value OfficeIMO.DocumentPersistenceMode required**

The value.

Returns

`WordCreateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Word.WordCreateOptions { PersistenceMode = value };    wordCreateOptions.PersistenceMode(value);
```

`public static WordCreateOptions Template(WordCreateOptions wordCreateOptions, string? value)` [#](#method-template-officeimo-word-wordcreateoptions-string)

Sets [WordCreateOptions.Template](/api/word/officeimo-word-wordcreateoptions/): Optional Word template copied into the new document.

Parameters

**wordCreateOptions OfficeIMO.Word.WordCreateOptions required**

The instance.

**value string? required**

The value.

Returns

`WordCreateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Word.WordCreateOptions { Template = value };    wordCreateOptions.Template(value);
```

`public static WordCreateOptions Theme(WordCreateOptions wordCreateOptions, OfficeTheme? value)` [#](#method-theme-officeimo-word-wordcreateoptions-officeimo-officetheme)

Sets [WordCreateOptions.Theme](/api/word/officeimo-word-wordcreateoptions/): Theme for a new document. Null retains native blank-document defaults or an existing template.

Parameters

**wordCreateOptions OfficeIMO.Word.WordCreateOptions required**

The instance.

**value OfficeIMO.OfficeTheme? required**

The value.

Returns

`WordCreateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Word.WordCreateOptions { Theme = value };    wordCreateOptions.Theme(value);
```

## 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:C94A59EFDB011A878900E4B3A36DB8B767DF09BAA7E26DB3EE040F6E7667D754 -->
