[]
        
(Showing Draft Content)

C1.C1Preview.DocumentPageLayouts

DocumentPageLayouts Class

Represents the standard page layouts used in a C1PrintDocument (such as the default page layout, page layout used for first and last pages, and so on).

Inheritance
DocumentPageLayouts
Implements
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
[C1ClassSerialization(true)]
public class DocumentPageLayouts : IEnumerable

Constructors

Name Description
DocumentPageLayouts(C1PrintDocument)

Initializes a new instance of the DocumentPageLayouts class.

Properties

Name Description
Default

Gets or sets the default PageLayout for the current document. The effective page layout for each page is determined by merging this layout with all other applicable layouts. The effective layout can be accessed via the CurrentPageLayout property on the C1PrintDocument.

EvenPages

Gets or sets the PageLayout used for even pages of the current document.

FirstPage

Gets or sets the PageLayout used for the first page of the current document.

this[PageLayoutKindEnum]

Gets the PageLayout of the specified PageLayoutKindEnum. Returns null if the specified kind of page layout has not been specified for the current DocumentPageLayouts.

LastPage

Gets or sets the PageLayout used for the last page of the current document.

OddPages

Gets or sets the PageLayout used for odd pages of the current document.

Owner

Gets the C1PrintDocument object that owns the current DocumentPageLayouts object.

PrintFooterOnFirstPage

Gets or sets a value indicating whether the page footer should print on the first page of the document. This property overrides other related properties when set to false. The default value is true.

PrintFooterOnLastPage

Gets or sets a value indicating whether the page footer should print on the last page of the document. This property overrides other related properties when set to false. The default value is true.

PrintHeaderOnFirstPage

Gets or sets a value indicating whether the page header should print on the first page of the document. This property overrides other related properties when set to false. The default value is true.

PrintHeaderOnLastPage

Gets or sets a value indicating whether the page header should print on the last page of the document. This property overrides other related properties when set to false. The default value is true.

SuppressEmptyLastPage

Gets or sets a value indicating whether to suppress adding an empty page at the end of the document if the last object contains a page break after itself. The default value is false.

Methods

Name Description
Clear()

Clears the current DocumentPageLayouts object.