# WordMarginsFluent

The fluent methods of WordMargins, 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 [WordMargins](/api/word/officeimo-word-wordmargins/), 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
- WordMarginsFluent

Filter members 

Show inherited

## Methods

`public static TSelf Bottom<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-bottom-nullable-officeimo-officelength)

Sets [WordMargins.Bottom](/api/word/officeimo-word-wordmargins/): Gets or sets the bottom margin as a physical length.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Bottom = value;      wordMargins.Bottom(value);
```

`public static TSelf FooterDistance<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-footerdistance-nullable-officeimo-officelength)

Sets [WordMargins.FooterDistance](/api/word/officeimo-word-wordmargins/): Gets or sets the footer distance from the page edge.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordMargins.FooterDistance = value;    wordMargins.FooterDistance(value);
```

`public static TSelf Gutter<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-gutter-nullable-officeimo-officelength)

Sets [WordMargins.Gutter](/api/word/officeimo-word-wordmargins/): Gets or sets the binding gutter.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Gutter = value;      wordMargins.Gutter(value);
```

`public static TSelf HeaderDistance<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-headerdistance-nullable-officeimo-officelength)

Sets [WordMargins.HeaderDistance](/api/word/officeimo-word-wordmargins/): Gets or sets the header distance from the page edge.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordMargins.HeaderDistance = value;    wordMargins.HeaderDistance(value);
```

`public static TSelf Left<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-left-nullable-officeimo-officelength)

Sets [WordMargins.Left](/api/word/officeimo-word-wordmargins/): Gets or sets the left margin as a physical length.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Left = value;        wordMargins.Left(value);
```

`public static TSelf Right<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-right-nullable-officeimo-officelength)

Sets [WordMargins.Right](/api/word/officeimo-word-wordmargins/): Gets or sets the right margin as a physical length.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Right = value;       wordMargins.Right(value);
```

`public static TSelf Top<TSelf>(TSelf wordMargins, OfficeLength? value)` [#](#method-top-nullable-officeimo-officelength)

Sets [WordMargins.Top](/api/word/officeimo-word-wordmargins/): Gets or sets the top margin as a physical length.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Top = value;         wordMargins.Top(value);
```

`public static TSelf Type<TSelf>(TSelf wordMargins, WordMargin? value)` [#](#method-type-nullable-officeimo-word-wordmargin)

Sets [WordMargins.Type](/api/word/officeimo-word-wordmargins/): Gets or sets a predefined margin set that matches the current settings.

Type Parameters

**TSelf**

Parameters

**wordMargins TSelf required**

The instance.

**value OfficeIMO.Word.WordMargin? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordMargins.Type = value;        wordMargins.Type(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:279F770C375222DF8138573DCA43B5C56B2072220FA3F41B1FDCA9CCC493E084 -->
