Back to Devexpress

WorksheetPrintOptions.CenterHorizontally Property

officefileapi-devexpress-dot-spreadsheet-dot-worksheetprintoptions-dbecedb6.md

latest1.9 KB
Original Source

WorksheetPrintOptions.CenterHorizontally Property

Gets or sets whether worksheet data is centered horizontally on a printed page.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
bool CenterHorizontally { get; set; }
vb
Property CenterHorizontally As Boolean

Property Value

TypeDescription
Boolean

true , to center worksheet data; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CenterHorizontally
Worksheet

.PrintOptions .CenterHorizontally

|

Remarks

Use the CenterHorizontally and WorksheetPrintOptions.CenterVertically properties to center worksheet data on a printed page. For more information on print options, see the How to: Specify Print Settings example.

See Also

WorksheetPrintOptions Interface

WorksheetPrintOptions Members

DevExpress.Spreadsheet Namespace