Selection.InsertRowsAbove Method 

Inserts rows above the current selection.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim NumRows As Object
Dim selection1 As Selection
selection1.InsertRowsAbove(NumRows)

Syntax

Sub InsertRowsAbove( _
    <InAttribute()> Optional ByRef NumRows As Object _
)
void InsertRowsAbove(
    [In, Optional] ref object NumRows
);
public: Void InsertRowsAbove(
    &Object^ NumRows
);
public void InsertRowsAbove(
    /*in*/System.Object NumRows
);
function InsertRowsAbove(
     NumRows : Object
);

Parameters

  • NumRows
    Optional Object. The number of rows to be added.

Remarks

Microsoft Word inserts as many rows as there are in the current selection.

In order to use this method, the current selection must be in a table.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Selection Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Selection Members