Skip to end of metadata
Go to start of metadata

Description

Returns or sets a TableCell.VerticalAlignment object that represents the vertical alignment of the text in this cell.

C#
 public VerticalAlignment VertAlignment{ get; set; }
vb.net
Public Property VertAlignment() As VerticalAlignment

Remarks

This is set to TableCell.VerticalAlignment.Top by default.

MS Word equivalent: Table menu > Table Properties... > Cell tab > Vertical alignment

Examples

C#

          //--- Return VertAlignment
          TableCell.VerticalAlignment oVerticalAlignment = cell.VertAlignment;

          //--- Set VertAlignment
          cell.VertAlignment = TableCell.VerticalAlignment.Center;
        
vb.net

          '--- Return VertAlignment
          Dim oVerticalAlignment As TableCell.VerticalAlignment = cell.VertAlignment

          '--- Set VertAlignment
          cell.VertAlignment = TableCell.VerticalAlignment.Center
        
  • No labels