[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.PageContentInfo

PageContentInfo Class

Represents the printable content area of a page.

A PageContentInfo object describes which worksheet range is printed on a page, along with page content settings such as title rows, tail rows, title columns, tail columns, row headers, column headers, and zoom factor. It is commonly used when customizing page output for printing or PDF export, and can also be obtained from PageContent.

Inheritance
PageContentInfo
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class PageContentInfo
Public Class PageContentInfo
Examples
PageContentInfo pageContent = new PageContentInfo();
pageContent.Range = worksheet.Range["A1:F20"];
pageContent.TitleRowStart = 0;
pageContent.TitleRowEnd = 1;
pageContent.ColumnHeaderVisible = true;

Constructors

Name Description
PageContentInfo()

Creates a page content info.

Initializes a PageContentInfo instance that can be configured with a printable range and page content settings, such as repeated title rows or visible headers, before it is used for printing or PDF export.

Properties

Name Description
ColumnHeaderVisible

Gets or sets whether the column header is printed.

This property indicates whether column headers are included when the page content is rendered for printing.

Range

Gets or sets the range to be printed.

Returns the worksheet range associated with this PageContentInfo instance for page printing or rendering.

RowHeaderVisible

Gets or sets whether the row header is printed.

This property indicates whether row headers are included when the page content is rendered for printing.

TailColumnEnd

Gets or sets the end index of the columns that are printed at the right of the page.

This property identifies the last column in the tail-column area of the page content.

TailColumnStart

Gets or sets the start index of the columns that are printed at the right of the page.

This property identifies the first column in the tail-column area of the page content.

TailRowEnd

Gets or sets the end index of the rows that are printed at the bottom of the page.

Use this property to retrieve the ending row index for the tail rows in this PageContentInfo.

TailRowStart

Gets or sets the start index of the rows that are printed at the bottom of the page.

Use this property to retrieve the first row index of the tail row area in this PageContentInfo.

TitleColumnEnd

Gets or sets the end index of the columns that are printed at the left of the page.

Use this property together with TitleColumnStart to define the left-side title column range for page printing.

TitleColumnStart

Gets or sets the start index of the columns that are printed at the left of the page.

Use this property to determine the first title column included in the page content.

TitleRowEnd

Gets or sets the end index of the rows that are printed at the top of the page.

Use this property to retrieve the last row index of the title-row area in a PageContentInfo object.

TitleRowStart

Gets or sets the start index of the rows that are printed at the top of the page.

Use this property to retrieve the first row index in the title row range for page content printing.

ZoomFactor

Gets or sets the percentage by which Document Solutions for Excel scales the worksheet for printing.

This value controls the print scaling applied to the page content. The returned value is greater than 0.