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+

Table.ForEachCell(TableCellProcessorDelegate) Method

Performs the specified action on each cell in the table.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void ForEachCell(
    TableCellProcessorDelegate cellProcessor
)
Sub ForEachCell(
    cellProcessor As TableCellProcessorDelegate
)
void ForEachCell(
    TableCellProcessorDelegate cellProcessor
)
Sub ForEachCell(
    cellProcessor As TableCellProcessorDelegate
)

Parameters

Name Type Description
cellProcessor TableCellProcessorDelegate

The TableCellProcessorDelegate delegate to perform on each cell in a table.

Parameters

Name Type Description
cellProcessor TableCellProcessorDelegate

The TableCellProcessorDelegate delegate to perform on each cell in a table.

Remarks

The TableCellProcessorDelegate is a delegate to a method that performs an action on the cell passed to it. Each cell is individually passed to the TableCellProcessorDelegate.

Note

You can also use anonymous methods as delegates.

Imports DevExpress.XtraRichEdit
Imports DevExpress.XtraRichEdit.API.Native
Imports DevExpress.XtraRichEdit.Commands
        Private Sub IterateCells(ByVal _table As Table)
            _table.BeginUpdate()
            _table.ForEachCell(New TableCellProcessorDelegate(AddressOf MakeMultiplicationCell))
            _table.EndUpdate()
        End Sub
        Private Sub MakeMultiplicationCell(ByVal cell As TableCell, ByVal i As Integer, ByVal j As Integer)
            richEditControl1.Document.InsertText(cell.Range.Start, String.Format("{0}*{1} = {2}", i+2, j+2, (i+2) * (j+2)))
        End Sub
See Also