Sets or returns whether or not the data of the worksheet is centered vertically within the margins. This is is set to false by default.

(This is not supported for charts.)

public boolean CenterVertically{ get; set; }
Public Property CenterVertically() As Boolean
          //--- Get CenterVertically
          bool centerVert = ps.CenterVertically;

          //--- Set CenterVertically
          ps.CenterVertically = true;
        
          '--- Get CenterVertically
          Dim centerVert As Boolean = ps.CenterVertically

          '--- Set CenterVertically
          ps.CenterVertically = True