Table of Contents

Class LayoutContext

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

The context for a ILayoutComponent processing.

public class LayoutContext
Inheritance
LayoutContext
Inherited Members

Remarks

This class is a part of the custom components API.

The Getting Started with Layout API article provides essential information on how to generate PDFs with the API.

Check out the other articles and code samples on the C# PDF generation library page.

Properties

AvailableSize

Gets the available size on the page to render the dynamic component.

Document

Gets the document associated with the context.

LayoutCompleted

Gets a value indicating whether the layout is ready for rendering.

PageCount

Gets the total number of pages in the document.

PageNumber

Gets the current page number in the document.

Methods

CreateElement(Action<LayoutContainer>)

Creates the dynamic element.

GetSectionPageCount(string)

Gets the total number of pages in the specified section.

GetSectionPageNumber(string)

Gets the current page number relative to the first page of the specified section.