Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Returns or sets a [TableCell.VerticalAlignment|TableCell.VerticalAlignment] object that represents the vertical alignment of the text in this cell.{excerpt}
{signature:C#}
 public VerticalAlignment VertAlignment{ get; set; }
{signature}{signature:vb.net}
Public Property VertAlignment() As VerticalAlignment
{signature}
{remarks}This is set to [TableCell.VerticalAlignment.Top|TableCell.VerticalAlignment#Top] by default.

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

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set VertAlignment
          cell.VertAlignment = TableCell.VerticalAlignment.Center;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set VertAlignment
          cell.VertAlignment = TableCell.VerticalAlignment.Center
        {code}

{example}