API Reference
Class
SectionBuilder
Builder for sections.
Inheritance
- Object
- SectionBuilder
Methods
public SectionBuilder Background(String hex) #Returns:
SectionBuilderSets the document background color using a hex value.
Parameters
- hex System.String
- Hex color value.
public SectionBuilder Columns(Int32 count) #Returns:
SectionBuilderSets the number of columns for the section.
Parameters
- count System.Int32
- Column count.
public SectionBuilder Margins(WordMargin margins) #Returns:
SectionBuilderSets the margins for the section.
Parameters
- margins OfficeIMO.Word.WordMargin
- Margin values.
New 2 overloads
public SectionBuilder New(SectionMarkValues breakType) #Returns:
SectionBuilderStarts a new section using the specified break type.
Parameters
- breakType DocumentFormat.OpenXml.Wordprocessing.SectionMarkValues
- Section break type.
public SectionBuilder Orientation(PageOrientationValues orientation) #Returns:
SectionBuilderSets the page orientation for the section.
Parameters
- orientation DocumentFormat.OpenXml.Wordprocessing.PageOrientationValues
- Orientation value.
PageNumbering 2 overloads
public SectionBuilder PageNumbering(Boolean restart = false) #Returns:
SectionBuilderEnables page numbering for the section.
Parameters
- restart System.Boolean = false
- Restart numbering at 1.
public SectionBuilder PageNumbering(NumberFormatValues format, Boolean restart = false) #Returns:
SectionBuilderEnables page numbering with a specific number format.
Parameters
- format DocumentFormat.OpenXml.Wordprocessing.NumberFormatValues
- Number format.
- restart System.Boolean = false
- Restart numbering at 1.
public SectionBuilder Paragraph(Action<ParagraphBuilder> action) #Returns:
SectionBuilderAdds a paragraph to the section.
Parameters
- action System.Action{OfficeIMO.Word.Fluent.ParagraphBuilder}
- Configuration action for the paragraph.
public SectionBuilder Size(WordPageSize pageSize) #Returns:
SectionBuilderSets the page size for the section.
Parameters
- pageSize OfficeIMO.Word.WordPageSize
- Page size definition.
public SectionBuilder Table(Action<TableBuilder> action) #Returns:
SectionBuilderAdds a table to the section.
Parameters
- action System.Action{OfficeIMO.Word.Fluent.TableBuilder}
- Configuration action for the table.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public WordSection Section { get; } #Gets the section being configured.