The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Table.ForEachRow(TableRowProcessorDelegate) Method

Enables you to specify a delegate which will be executed for each row of a table.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void ForEachRow(
    TableRowProcessorDelegate cellProcessor
)
Sub ForEachRow(
    cellProcessor As TableRowProcessorDelegate
)
void ForEachRow(
    TableRowProcessorDelegate cellProcessor
)
Sub ForEachRow(
    cellProcessor As TableRowProcessorDelegate
)
void ForEachRow(
    TableRowProcessorDelegate cellProcessor
)
Sub ForEachRow(
    cellProcessor As TableRowProcessorDelegate
)

Parameters

Name Type Description
cellProcessor TableRowProcessorDelegate

A TableRowProcessorDelegate delegate.

Parameters

Name Type Description
cellProcessor TableRowProcessorDelegate

A TableRowProcessorDelegate delegate.

Parameters

Name Type Description
cellProcessor TableRowProcessorDelegate

A TableRowProcessorDelegate delegate.

Remarks

The following code snippet paints the third column with a light cyan color.

    Table table = document.Tables.Create(document.Range.Start, 3, 10);
    table.BeginUpdate();
    //Change cell background color and vertical alignment in the third column.
    table.ForEachRow(new TableRowProcessorDelegate(ChangeColumnAppearanceHelper.ChangeColumnColor));
    table.EndUpdate();
class ChangeColumnAppearanceHelper
{
    public static void ChangeColumnColor(TableRow row, int rowIndex)
    {
        row[2].BackgroundColor = System.Drawing.Color.LightCyan;
        row[2].VerticalAlignment = TableCellVerticalAlignment.Center;
    }
}
See Also