Skip to main content
.NET Framework 4.5.2+

TableCell.Range Property

Gets a document range that contains the cell content, including the table paragraph mark.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core


DocumentRange Range { get; }

Property Value

Type Description

A range with the cell content.


The Range property returns the range with the whole cell (including the table paragraph mark). The ContentRange property returns the range occupied by the cell content.

The image below illustrates the difference between Range and ContentRange values:


Use the Range property to format cell content, as shown below:

using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
  Document document = wordProcessor.Document;
  Table table = document.Tables[0];
  TableCell headerCell = table[0, 1];

  // Insert text to the cell
  document.InsertSingleLineText(headerCell.Range.Start, "Active Customers");

  // Apply formatting to the "Active Customers" cell
  CharacterProperties properties =
  properties.FontName = "Segoe UI";
  properties.FontSize = 16;
See Also