Sections
Basics
Documents are broken into sections.
Sections
This container allows you to define your page layout by configuring margins, watermarks, and different content sections such as header, footer, and the main content area. You can easily create sections of various sizes and orientations while controlling text styles and content direction.
Simple Usage
Documents are constructed in sections.
Customization
The Section method returns a descriptor that allows further customization
of its contents.
WordDocument.Create(filePath, document =>
{
document.Section(section =>
{
section.Header(header =>
{
header.Paragraph("FluentWriter")
.AlignLeft()
.Bold()
.FontSize(18);
});
section.Content(content =>
{
content.Paragraph("This is a simple paragraph.");
});
section.Footer(footer =>
{
footer.Paragraph("FluentWriter");
footer.Paragraph("www.fluentwriter.net");
});
});
});