Skip to main content
Row

Margins.Footer Property

Gets or sets the space between a footer and bottom edge of a worksheet printed page.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v23.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

float Footer { get; set; }

Property Value

Type Description
Single

A Single value that specifies the footer margin in measure units used in the workbook.

Remarks

Use the Margins object properties to align worksheet data on printed pages. To learn how to set the other printing options of a worksheet, refer to the How to: Specify Print Settings document.

Example

This example demonstrates how to set margins of worksheet pages via properties of the Margins object. Use the Worksheet.ActiveView.Margins property to return this object. To select units of measure for worksheet page margins, set the Workbook.Unit property to the required DocumentUnit enumeration member.

Note

The WorksheetView.Margins settings are used when worksheet pages are printed. To learn how to specify other worksheet print options, see the How to: Specify Print Settings document.

View Example

// Select a unit of measure used within the workbook.
workbook.Unit = DevExpress.Office.DocumentUnit.Inch;

// Access page margins.
Margins pageMargins = workbook.Worksheets[0].ActiveView.Margins;

// Specify page margins.
pageMargins.Left = 1;
pageMargins.Top = 1.5F;
pageMargins.Right = 1;
pageMargins.Bottom = 0.8F;

// Specify header and footer margins.
pageMargins.Header = 1;
pageMargins.Footer = 0.4F;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Footer property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also