WordSectionFluent
OfficeIMO.Word
The fluent methods of 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
Methods
public static TSelf Bookmarks<TSelf>(TSelf wordSection, IEnumerable<WordBookmark> items) #Adds items to WordSection.Bookmarks: Gets all bookmarks defined in the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordBookmark>
- The items, in order.
Returns
TSelf The same instance.public static TSelf Bookmark<TSelf>(TSelf wordSection, WordBookmark item) #Adds an item to WordSection.Bookmarks: Gets all bookmarks defined in the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- item OfficeIMO.Word.WordBookmark
- The item.
Returns
TSelf The same instance.public static TSelf Borders<TSelf>(TSelf wordSection, WordBorder wordBorder) #Applies border settings to the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- wordBorder OfficeIMO.Word.WordBorder
- Border preset to apply.
Returns
TSelf The same instance.public static TSelf Borders<TSelf>(TSelf wordSection, Action<WordBorders> configure) #Configures WordSection.Borders in place: Provides access to page border settings for this section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- configure System.Action<OfficeIMO.Word.WordBorders>
- Configures the value.
Returns
TSelf The same instance.public static TSelf BreakType<TSelf>(TSelf wordSection, WordSectionBreakType value) #Sets WordSection.BreakType: Gets or sets how this section starts relative to the preceding section. An omitted section type uses WordSectionBreakType.NextPage.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- value OfficeIMO.Word.WordSectionBreakType
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.BreakType = value; wordSection.BreakType(value);public static TSelf Charts<TSelf>(TSelf wordSection, IEnumerable<WordChart> items) #Adds items to WordSection.Charts: Gets all charts contained in the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordChart>
- The items, in order.
Returns
TSelf The same instance.public static TSelf Chart<TSelf>(TSelf wordSection, WordChart item) #Adds an item to WordSection.Charts: Gets all charts contained in the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- item OfficeIMO.Word.WordChart
- The item.
Returns
TSelf The same instance.public static TSelf ColumnCount<TSelf>(TSelf wordSection, int? value) #Sets WordSection.ColumnCount: Gets or sets the number of columns in the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- value int?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.ColumnCount = value; wordSection.ColumnCount(value);public static TSelf ColumnDefinitions<TSelf>(TSelf wordSection, IReadOnlyList<WordSectionColumn> value) #Sets WordSection.ColumnDefinitions: 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
- The instance.
- value System.Collections.Generic.IReadOnlyList<OfficeIMO.Word.WordSectionColumn>
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.ColumnDefinitions = value; wordSection.ColumnDefinitions(value);public static TSelf ColumnsSpace<TSelf>(TSelf wordSection, OfficeLength? value) #Sets WordSection.ColumnsSpace: 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
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.ColumnsSpace = value; wordSection.ColumnsSpace(value);public static TSelf Elements<TSelf>(TSelf wordSection, IEnumerable<WordElement> items) #Adds items to WordSection.Elements: Provides a list of all elements within the section including paragraphs, tables, images, etc.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordElement>
- The items, in order.
Returns
TSelf The same instance.public static TSelf Element<TSelf>(TSelf wordSection, WordElement item) #Adds an item to WordSection.Elements: Provides a list of all elements within the section including paragraphs, tables, images, etc.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- item OfficeIMO.Word.WordElement
- The item.
Returns
TSelf The same instance.public static TSelf Element<TSelf>(TSelf wordSection, Action<WordElement> configure) #Creates an item, configures it and adds it to WordSection.Elements: Provides a list of all elements within the section including paragraphs, tables, images, etc.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- configure System.Action<OfficeIMO.Word.WordElement>
- Configures the new item before it is added.
Returns
TSelf The same instance.public static TSelf Fields<TSelf>(TSelf wordSection, IEnumerable<WordField> items) #Adds items to WordSection.Fields: Gets all fields within the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordField>
- The items, in order.
Returns
TSelf The same instance.public static TSelf Field<TSelf>(TSelf wordSection, WordField item) #Adds an item to WordSection.Fields: Gets all fields within the section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- item OfficeIMO.Word.WordField
- The item.
Returns
TSelf The same instance.public static TSelf HasColumnSeparator<TSelf>(TSelf wordSection, bool value = true) #Sets WordSection.HasColumnSeparator: Gets or sets whether a separator line is shown between section columns.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- value bool = true
- The value; true when omitted.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.HasColumnSeparator = value; wordSection.HasColumnSeparator(value);public static TSelf PageSetup<TSelf>(TSelf wordSection, Action<WordPageSetup> configure) #Configures WordSection.PageSetup in place: Gets the page size, margins, orientation and running headers and footers of this section.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- configure System.Action<OfficeIMO.Word.WordPageSetup>
- Configures the value.
Returns
TSelf The same instance.public static TSelf Paragraphs<TSelf>(TSelf wordSection, IEnumerable<WordParagraph> items) #Adds items to WordSection.Paragraphs: Provides a list of all paragraphs within the section
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- items System.Collections.Generic.IEnumerable<OfficeIMO.Word.WordParagraph>
- The items, in order.
Returns
TSelf The same instance.public static TSelf Paragraph<TSelf>(TSelf wordSection, WordParagraph item) #Adds an item to WordSection.Paragraphs: Provides a list of all paragraphs within the section
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- item OfficeIMO.Word.WordParagraph
- The item.
Returns
TSelf The same instance.public static TSelf RtlGutter<TSelf>(TSelf wordSection, bool value = true) #Sets WordSection.RtlGutter: Gets or sets a value indicating whether the gutter should be on the right for RTL pages.
Type Parameters
- TSelf
Parameters
- wordSection TSelf
- The instance.
- value bool = true
- The value; true when omitted.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordSection.RtlGutter = value; wordSection.RtlGutter(value);