# WordSectionFluent

The fluent methods of WordSection, 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 [WordSection](/api/word/officeimo-word-wordsection/), 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
- WordSectionFluent

Filter members 

Show inherited

## Methods

`public static TSelf Bookmarks<TSelf>(TSelf wordSection, IEnumerable<WordBookmark> items)` [#](#method-bookmarks-collections-generic-ienumerable-officeimo-word-wordbookmark)

Adds items to [WordSection.Bookmarks](/api/word/officeimo-word-wordsection/): Gets all bookmarks defined in the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordBookmark> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Bookmark<TSelf>(TSelf wordSection, WordBookmark item)` [#](#method-bookmark-officeimo-word-wordbookmark)

Adds an item to [WordSection.Bookmarks](/api/word/officeimo-word-wordsection/): Gets all bookmarks defined in the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**item OfficeIMO.Word.WordBookmark required**

The item.

Returns

`TSelf` The same instance.

Borders``1 2 overloads

`public static TSelf Borders<TSelf>(TSelf wordSection, WordBorder wordBorder)` [#](#method-borders-officeimo-word-wordborder)

Applies border settings to the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**wordBorder OfficeIMO.Word.WordBorder required**

Border preset to apply.

Returns

`TSelf` The same instance.

`public static TSelf Borders<TSelf>(TSelf wordSection, Action<WordBorders> configure)` [#](#method-borders-action-officeimo-word-wordborders)

Configures [WordSection.Borders](/api/word/officeimo-word-wordsection/) in place: Provides access to page border settings for this section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**configure System.Action<OfficeIMO.Word.WordBorders> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf BreakType<TSelf>(TSelf wordSection, WordSectionBreakType value)` [#](#method-breaktype-officeimo-word-wordsectionbreaktype)

Sets [WordSection.BreakType](/api/word/officeimo-word-wordsection/): Gets or sets how this section starts relative to the preceding section. An omitted section type uses [WordSectionBreakType.NextPage](/api/word/officeimo-word-wordsectionbreaktype/).

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value OfficeIMO.Word.WordSectionBreakType required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordSection.BreakType = value;    wordSection.BreakType(value);
```

`public static TSelf Charts<TSelf>(TSelf wordSection, IEnumerable<WordChart> items)` [#](#method-charts-collections-generic-ienumerable-officeimo-word-wordchart)

Adds items to [WordSection.Charts](/api/word/officeimo-word-wordsection/): Gets all charts contained in the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordChart> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Chart<TSelf>(TSelf wordSection, WordChart item)` [#](#method-chart-officeimo-word-wordchart)

Adds an item to [WordSection.Charts](/api/word/officeimo-word-wordsection/): Gets all charts contained in the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**item OfficeIMO.Word.WordChart required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ColumnCount<TSelf>(TSelf wordSection, int? value)` [#](#method-columncount-nullable-system-int32)

Sets [WordSection.ColumnCount](/api/word/officeimo-word-wordsection/): Gets or sets the number of columns in the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordSection.ColumnCount = value;    wordSection.ColumnCount(value);
```

`public static TSelf ColumnDefinitions<TSelf>(TSelf wordSection, IReadOnlyList<WordSectionColumn> value)` [#](#method-columndefinitions-collections-generic-ireadonlylist-officeimo-word-wordsectioncolumn)

Sets [WordSection.ColumnDefinitions](/api/word/officeimo-word-wordsection/): Gets or replaces explicit section column widths and individual gaps. Setting a non-empty list selects unequal-width columns and synchronizes ColumnCount. An empty list restores equal-width columns while retaining their count and default gap. An omitted individual gap is zero for unequal columns; ColumnsSpace applies to equal widths. DOCX preserves the omission; native DOC writes its effective zero explicitly. Native DOC saving supports up to 44 columns, widths from 718 through 32767 twips, and gaps from zero through 32767 twips.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value System.Collections.Generic.IReadOnlyList<OfficeIMO.Word.WordSectionColumn> required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordSection.ColumnDefinitions = value;    wordSection.ColumnDefinitions(value);
```

`public static TSelf ColumnsSpace<TSelf>(TSelf wordSection, OfficeLength? value)` [#](#method-columnsspace-nullable-officeimo-officelength)

Sets [WordSection.ColumnsSpace](/api/word/officeimo-word-wordsection/): Gets or sets the equal-width column gap as a physical length. Null omits the stored gap; layout uses its existing 36-point default. Storage rounds to whole signed 32-bit twips. Native DOC saving accepts only gaps from zero through 65535 twips and writes its default for an omitted gap when a column count is set. Individual unequal-column gaps are controlled by ColumnDefinitions.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
wordSection.ColumnsSpace = value;    wordSection.ColumnsSpace(value);
```

`public static TSelf Elements<TSelf>(TSelf wordSection, IEnumerable<WordElement> items)` [#](#method-elements-collections-generic-ienumerable-officeimo-word-wordelement)

Adds items to [WordSection.Elements](/api/word/officeimo-word-wordsection/): Provides a list of all elements within the section including paragraphs, tables, images, etc.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordElement> required**

The items, in order.

Returns

`TSelf` The same instance.

Element``1 2 overloads

`public static TSelf Element<TSelf>(TSelf wordSection, WordElement item)` [#](#method-element-officeimo-word-wordelement)

Adds an item to [WordSection.Elements](/api/word/officeimo-word-wordsection/): Provides a list of all elements within the section including paragraphs, tables, images, etc.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**item OfficeIMO.Word.WordElement required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf Element<TSelf>(TSelf wordSection, Action<WordElement> configure)` [#](#method-element-action-officeimo-word-wordelement)

Creates an item, configures it and adds it to [WordSection.Elements](/api/word/officeimo-word-wordsection/): Provides a list of all elements within the section including paragraphs, tables, images, etc.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**configure System.Action<OfficeIMO.Word.WordElement> required**

Configures the new item before it is added.

Returns

`TSelf` The same instance.

`public static TSelf Fields<TSelf>(TSelf wordSection, IEnumerable<WordField> items)` [#](#method-fields-collections-generic-ienumerable-officeimo-word-wordfield)

Adds items to [WordSection.Fields](/api/word/officeimo-word-wordsection/): Gets all fields within the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordField> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Field<TSelf>(TSelf wordSection, WordField item)` [#](#method-field-officeimo-word-wordfield)

Adds an item to [WordSection.Fields](/api/word/officeimo-word-wordsection/): Gets all fields within the section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**item OfficeIMO.Word.WordField required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf HasColumnSeparator<TSelf>(TSelf wordSection, bool value = true)` [#](#method-hascolumnseparator-boolean)

Sets [WordSection.HasColumnSeparator](/api/word/officeimo-word-wordsection/): Gets or sets whether a separator line is shown between section columns.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
wordSection.HasColumnSeparator = value;    wordSection.HasColumnSeparator(value);
```

`public static TSelf PageSetup<TSelf>(TSelf wordSection, Action<WordPageSetup> configure)` [#](#method-pagesetup-action-officeimo-word-wordpagesetup)

Configures [WordSection.PageSetup](/api/word/officeimo-word-wordsection/) in place: Gets the page size, margins, orientation and running headers and footers of this section.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**configure System.Action<OfficeIMO.Word.WordPageSetup> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Paragraphs<TSelf>(TSelf wordSection, IEnumerable<WordParagraph> items)` [#](#method-paragraphs-collections-generic-ienumerable-officeimo-word-wordparagraph)

Adds items to [WordSection.Paragraphs](/api/word/officeimo-word-wordsection/): Provides a list of all paragraphs within the section

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordParagraph> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Paragraph<TSelf>(TSelf wordSection, WordParagraph item)` [#](#method-paragraph-officeimo-word-wordparagraph)

Adds an item to [WordSection.Paragraphs](/api/word/officeimo-word-wordsection/): Provides a list of all paragraphs within the section

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**item OfficeIMO.Word.WordParagraph required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf RtlGutter<TSelf>(TSelf wordSection, bool value = true)` [#](#method-rtlgutter-boolean)

Sets [WordSection.RtlGutter](/api/word/officeimo-word-wordsection/): Gets or sets a value indicating whether the gutter should be on the right for RTL pages.

Type Parameters

**TSelf**

Parameters

**wordSection TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordSection.RtlGutter = value;    wordSection.RtlGutter(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:AFB8553EFF07CA475315E4E22515CD0E5AE6FB662AA556CB935922FB2BF598AD -->
