Back to Devexpress

Table.Rows Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-table-aa02114a.md

latest3.4 KB
Original Source

Table.Rows Property

Provides access to a collection of table rows.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
TableRowCollection Rows { get; }
vb
ReadOnly Property Rows As TableRowCollection

Property Value

TypeDescription
TableRowCollection

A TableRowCollection interface that enables you to operate with table rows.

|

Remarks

To obtain a particular cell within a table, use the Table.Item property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Rows property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L188

csharp
TableRow targetRow = table.Rows[2];
targetRow.Cells[1].BackgroundColor = Color.FromArgb(99, 122, 110);

word-document-api-table-examples/CS/Program.cs#L166

csharp
//Specify the background color for the third row
TableRow targetRow = table.Rows[2];
targetRow.Cells[0].BackgroundColor = Color.FromArgb(99, 122, 110);

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L155

vb
Dim targetRow As TableRow = table.Rows(2)
targetRow.Cells(1).BackgroundColor = Color.FromArgb(99, 122, 110)

word-document-api-table-examples/VB/Program.vb#L133

vb
'Specify the background color for the third row
Dim targetRow As TableRow = table.Rows(2)
targetRow.Cells(0).BackgroundColor = Color.FromArgb(99, 122, 110)

See Also

Item[Int32, Int32]

Table Interface

Table Members

DevExpress.XtraRichEdit.API.Native Namespace