Share via


Rows Interface

A collection of Row objects that represent the rows in a table.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("914934C6-5A91-11CF-8700-00AA0060263B")> _
Public Interface Rows _
    Inherits Collection
'Usage
Dim instance As Rows
[GuidAttribute("914934C6-5A91-11CF-8700-00AA0060263B")]
public interface Rows : Collection

Examples

Use the _Index(Int32) property to return the Rows collection. This example changes the height of all rows in the specified table to 160 points.

Dim i As Integer

With ActivePresentation.Slides(2).Shapes(4).Table

    For i = 1 To .Rows.Count

        .Rows.Height = 160

    Next i

End With

Use the Add(Int32) method to add a row to a table. This example inserts a row before the second row in the referenced table.

ActivePresentation.Slides(2).Shapes(5).Table.Rows.Add (2)

Use Rows(index), where index is a number that represents the position of the row in the table, to return a single Row object. This example deletes the first row from the table in shape five on slide two.

ActivePresentation.Slides(2).Shapes(5).Table.Rows(1).Delete

See Also

Reference

Rows Members

Microsoft.Office.Interop.PowerPoint Namespace