Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Sets an int representing the height of a particular row in the table. A row height is set in twips. One twip = (1/20 pt) or (1/1440 in).

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets an {{int}} representing the height of a particular row in the table. A row height is set in twips. One twip = \(1/20 pt\) or \(1/1440 in\).{excerpt}
{signature:C#}
 public void SetRowHeight(int row, int height)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetRowHeight(ByVal row As Integer, ByVal height As Integer)
Parameters

...

An int representing the row index to set the height for.

...

An int representing the new height in twips of the specified row. One twip = (1/20 pt) or (1/1440 in).

Remarks

MS Word equivalent: Table menu > Table properties... > Row tab > Size section > Row #: > Specify height:

{signature}
{parameters}
{param:row}An {{int}} representing the row index to set the height for.{param}
{param:height}An {{int}} representing the new height in twips of the specified row. One twip = \(1/20 pt\) or \(1/1440 in\).{param}
{remarks}MS Word equivalent: Table menu > Table properties... > Row tab > Size section > Row \#: > Specify height:

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

          //--- Set the height of the 3rd row to 1 inch
          oTable.SetRowHeight(2, 1440);
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Set the height of the 3rd row to 1 inch
          oTable.SetRowHeight(2, 1440)
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle