Class PageSetupWorksheet
Represents the page setup worksheet class used by the spreadsheet model.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class PageSetupWorksheet
Properties
BlackAndWhite
Print black and white.
Declaration
public bool BlackAndWhite { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CellComments
Gets or sets how to print cell comments.
Declaration
public CellComments CellComments { get; set; }
Property Value
| Type | Description |
|---|---|
| CellComments |
Draft
Print without graphics.
Declaration
public bool Draft { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PageOrder
Order of printed pages.
Declaration
public PageOrder PageOrder { get; set; }
Property Value
| Type | Description |
|---|---|
| PageOrder |
PrintArea
Specifies the are to print from the sheet.
Declaration
public string PrintArea { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PrintErrors
Specifies how to print cell values for cells with errors.
Declaration
public PrintError PrintErrors { get; set; }
Property Value
| Type | Description |
|---|---|
| PrintError |
PrintGridlines
Gets or sets whether to print gridlines.
Declaration
public bool PrintGridlines { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PrintHeadings
Gets or sets whether to print row and column headings
Declaration
public bool PrintHeadings { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PrintTitlesColumnsToRepeat
Exposes the print titles columns to repeat associated with PageSetupWorksheet.
Declaration
public string PrintTitlesColumnsToRepeat { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The print titles columns to repeat returned by the operation. |
PrintTitlesRowsToRepeat
Exposes the print titles rows to repeat associated with PageSetupWorksheet.
Declaration
public string PrintTitlesRowsToRepeat { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The print titles rows to repeat returned by the operation. |
Methods
SetPrintArea(Range)
Sets the print area from a Range on this worksheet.
Declaration
public void SetPrintArea(Range range)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | range | The range to use as the print area. |
SetPrintTitleColumns(int, int)
Sets the columns to repeat as print titles on every page.
Declaration
public void SetPrintTitleColumns(int firstColumn, int lastColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| int | firstColumn | One-based index (A=1) of the first column to repeat. |
| int | lastColumn | One-based index (A=1) of the last column to repeat. |
SetPrintTitleRows(int, int)
Sets the rows to repeat as print titles on every page.
Declaration
public void SetPrintTitleRows(int firstRow, int lastRow)
Parameters
| Type | Name | Description |
|---|---|---|
| int | firstRow | One-based index of the first row to repeat. |
| int | lastRow | One-based index of the last row to repeat. |