[]
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.
public bool CenterHorizontally { get; set; }
Public Property CenterHorizontally As Boolean
PageSettings pageSettings = new PageSettings();
pageSettings.CenterHorizontally = true;
bool centerHorizontally = pageSettings.CenterHorizontally;