[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.PageSettings.CenterHorizontally

CenterHorizontally Property

CenterHorizontally

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

Use this property to determine whether the printed sheet content is centered between the left and right page margins.

Declaration
public bool CenterHorizontally { get; set; }
Public Property CenterHorizontally As Boolean
Examples
PageSettings pageSettings = new PageSettings();
pageSettings.CenterHorizontally = true;
bool centerHorizontally = pageSettings.CenterHorizontally;