# WordPageSizesFluent

The fluent methods of WordPageSizes, 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 [WordPageSizes](/api/word/officeimo-word-wordpagesizes/), 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
- WordPageSizesFluent

Filter members 

Show inherited

## Methods

`public static TSelf Code<TSelf>(TSelf wordPageSizes, ushort? value)` [#](#method-code-nullable-system-uint16)

Sets [WordPageSizes.Code](/api/word/officeimo-word-wordpagesizes/): Gets or sets the paper code.

Type Parameters

**TSelf**

Parameters

**wordPageSizes TSelf required**

The instance.

**value ushort? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordPageSizes.Code = value;      wordPageSizes.Code(value);
```

`public static TSelf Height<TSelf>(TSelf wordPageSizes, OfficeLength? value)` [#](#method-height-nullable-officeimo-officelength)

Sets [WordPageSizes.Height](/api/word/officeimo-word-wordpagesizes/): Gets or sets the section height. Explicit edits clear the paper code.

Type Parameters

**TSelf**

Parameters

**wordPageSizes TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordPageSizes.Height = value;    wordPageSizes.Height(value);
```

`public static TSelf Orientation<TSelf>(TSelf wordPageSizes, OfficePageOrientation value)` [#](#method-orientation-officeimo-officepageorientation)

Sets [WordPageSizes.Orientation](/api/word/officeimo-word-wordpagesizes/): Gets or sets the section page orientation.

Type Parameters

**TSelf**

Parameters

**wordPageSizes TSelf required**

The instance.

**value OfficeIMO.OfficePageOrientation required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
wordPageSizes.Orientation = value;    wordPageSizes.Orientation(value);
```

`public static TSelf PageSize<TSelf>(TSelf wordPageSizes, WordPageSize? value)` [#](#method-pagesize-nullable-officeimo-word-wordpagesize)

Sets [WordPageSizes.PageSize](/api/word/officeimo-word-wordpagesizes/): Gets or sets the preset paper size for the section.

Type Parameters

**TSelf**

Parameters

**wordPageSizes TSelf required**

The instance.

**value OfficeIMO.Word.WordPageSize? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordPageSizes.PageSize = value;    wordPageSizes.PageSize(value);
```

`public static TSelf Width<TSelf>(TSelf wordPageSizes, OfficeLength? value)` [#](#method-width-nullable-officeimo-officelength)

Sets [WordPageSizes.Width](/api/word/officeimo-word-wordpagesizes/): Gets or sets the section width. Explicit edits clear the paper code.

Type Parameters

**TSelf**

Parameters

**wordPageSizes TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordPageSizes.Width = value;     wordPageSizes.Width(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:0096871E6B0CAE567B1D285DCD118DFC99D3BDB4E7E8E780EF2FF17EADC1E21E -->
