officefileapi-devexpress-dot-spreadsheet-dot-sheetview-e7e1a17e.md
Returns an object that defines page margins for a printed sheet.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
Margins Margins { get; }
ReadOnly Property Margins As Margins
| Type | Description |
|---|---|
| Margins |
An object used to specify margin settings.
|
Page margins are specified in measurement units defined in a workbook. See the following topic for details: Measure Units.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Margins 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.
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/ChartSheetActions.cs#L149
// Specify page margins.
Margins pageMargins = chartSheet.ActiveView.Margins;
pageMargins.Left = 0.7F;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.cs#L149
// Specify page margins.
Margins pageMargins = chartSheet.ActiveView.Margins;
pageMargins.Left = 0.7F;
// Access page margins.
Margins pageMargins = workbook.Worksheets[0].ActiveView.Margins;
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/ChartSheetActions.vb#L144
' Specify page margins.
Dim pageMargins As Margins = chartSheet.ActiveView.Margins
pageMargins.Left = 0.7F
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.vb#L143
' Specify page margins.
Dim pageMargins As Margins = chartSheet.ActiveView.Margins
pageMargins.Left = 0.7F
' Access page margins.
Dim pageMargins As Margins = workbook.Worksheets(0).ActiveView.Margins
' Specify page margins.
See Also