Sets or returns whether or not the data of the worksheet is centered horizontally within the margins. This is is set to false by default.
public boolean CenterHorizontally{ get; set; }
Public Property CenterHorizontally() As Boolean
//--- Get CenterHorizontally bool centerHoriz = ps.CenterHorizontally //--- Set CenterHorizontally ps.CenterHorizontally = true;
'--- Get CenterHorizontally Dim centerHoriz As Boolean = ps.CenterHorizontally '--- Set CenterHorizontally ps.CenterHorizontally = True