Selection.InsertRows Method 

Inserts the specified number of new rows above the row that contains the 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.InsertRows(NumRows)

Syntax

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

Parameters

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

Remarks

If the selection isn't in a table, an error occurs.

You can also insert rows by using the Add method of the Rows object.

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