Interface IPageComposer
- Namespace
- DocWright.Composition
- Assembly
- DocWright.Composition.dll
Composes one page: its setup, its header and footer parts, and its content.
public interface IPageComposer
Methods
- Content()
Gets the container for the page's body content.
- DefaultTextStyle(Action<ITextStyleComposer>)
Sets the default text formatting for this page's content, which lowers to the document's default character properties.
- Footer()
Gets the container for the page's default footer.
- FooterEven()
Gets the container for even pages' footer, and turns on the document's even-and-odd-headers setting.
- FooterFirst()
Gets the container for the first page's footer, and marks the section as having a different first page.
- Header()
Gets the container for the page's default header.
- HeaderEven()
Gets the container for even pages' header, and turns on the document's even-and-odd-headers setting, which is what makes the part take effect.
- HeaderFirst()
Gets the container for the first page's header, and marks the section as having a different first page — a first-page part without that flag is inert in Word.
- Landscape()
Switches the page to landscape, swapping width and height as Word does.
- Margin(double, Unit)
Sets all four margins.
- MarginBottom(double, Unit)
Sets the bottom margin.
- MarginLeft(double, Unit)
Sets the left margin.
- MarginRight(double, Unit)
Sets the right margin.
- MarginTop(double, Unit)
Sets the top margin.
- Size(PageSize)
Sets the page size.
- Size(double, double, Unit)
Sets the page size explicitly.