该属性返回一个 Rows 集合,该集合代表某个范围、所选部分或表格中所有的表格行。只读。
有关返回集合中单个成员的内容,请参阅返回集合中的对象。
本示例删除活动文档第一个表格的第二行。
ActiveDocument.Tables(1).Rows(2).Delete
本示例为插入点所在行的各单元格设置边框。
Selection.Collapse Direction:=wdCollapseStart
If Selection.Information(wdWithInTable) = True Then
Selection.Rows(1).Borders.OutsideLineStyle = wdLineStyleSingle
Else
MsgBox "The insertion point is not in a table."
End If