Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorksheetPrintOptions.CenterHorizontally Property

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

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

bool CenterHorizontally { get; set; }

#Property Value

Type Description
Boolean

true, to center worksheet data; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path 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