Skip to main content

TableCell.ContentRange Property

Gets the document range that contains the cell content (excluding the table paragraph mark).

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation


DocumentRange ContentRange { get; }

Property Value

Type Description

The range with the cell content.


The ContentRange property returns the range with the cell content. Use the Range property to obtain the range occupied by the whole table cell, including the table paragraph mark.

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


Use the ContentRange property to append content to the cell, as shown below:

Table table = document.Tables[0];

//Apply formatting to the first cell
CharacterProperties properties = document.BeginUpdateCharacters(table[0, 1].ContentRange);
properties.FontName = "Segoe UI";
properties.FontSize = 16;
ParagraphProperties alignment = document.BeginUpdateParagraphs(table[0, 1].ContentRange);
alignment.Alignment = ParagraphAlignment.Center;

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


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.

See Also