Page tree

Versions Compared

Key

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

Excerpt

Returns an int representing the height of a particular row in the table. The default row height unit is twips. One twip = (1/20 pt) or (1/1440 in).

Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns an {{int}} representing the height of a particular row in the table.  The default row height unit is twips. One twip = \(1/20 pt\) or \(1/1440 in\).{excerpt}
{signature:C#}
 public int GetRowHeight(int row)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetRowHeight(ByVal row As Integer) As Integer
Parameters

...

An int representing the index of the desired row.

Returns

An int representing the 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 index of the desired row.{param}
{returns}An {{int}} representing the height in twips of the specified row. One twip = \(1/20 pt\) or \(1/1440 in\).{returns}
{remarks}MS Word equivalent: Table menu > Table properties... > Row tab > Size section > Row \#: > Specify height:

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

          //--- Get the height of the 3rd row
          int rowHeight = oTable.GetRowHeight(2);
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get the height of the 3rd row
          Dim rowHeight As Integer = oTable.GetRowHeight(2)
        {code}

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