[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.CenterHorizontally

CenterHorizontally Property

CenterHorizontally

Gets or sets whether the sheet is centered horizontally on the page when it's printed.

This property indicates whether the worksheet content is horizontally centered within the printable page area during printing.

Declaration
bool CenterHorizontally { get; set; }
Property CenterHorizontally As Boolean
Examples
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.CenterHorizontally = true;
bool centerHorizontally = pageSetup.CenterHorizontally;