officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablerow-0db83db1.md
Gets the document range occupied by the current row.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
DocumentRange Range { get; }
ReadOnly Property Range As DocumentRange
| Type | Description |
|---|---|
| DocumentRange |
A DocumentRange occupied by a row.
|
Use the Range property to get row content and apply formatting to the entire row.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Range 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#L139
// Apply formatting to the header cells
CharacterProperties headerRowProperties = document.BeginUpdateCharacters(table.Rows[2].Range);
headerRowProperties.FontName = "Segoe UI";
word-document-api-table-examples/CS/Program.cs#L121
//Apply formatting to the header cells
CharacterProperties headerRowProperties = document.BeginUpdateCharacters(table.Rows[2].Range);
headerRowProperties.FontName = "Segoe UI";
ParagraphProperties pp = document.BeginUpdateParagraphs(table.FirstRow.Range);
pp.Alignment = ParagraphAlignment.Center;
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L37
// Center the table header.
foreach (Paragraph p in document.Paragraphs.Get(tbl.FirstRow.Range))
{
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L41
// Center the table header.
foreach (Paragraph p in document.Paragraphs.Get(tbl.FirstRow.Range))
{
winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L114
' Apply formatting to the header cells
Dim headerRowProperties As CharacterProperties = document.BeginUpdateCharacters(table.Rows(2).Range)
headerRowProperties.FontName = "Segoe UI"
word-document-api-table-examples/VB/Program.vb#L96
'Apply formatting to the header cells
Dim headerRowProperties As CharacterProperties = document.BeginUpdateCharacters(table.Rows(2).Range)
headerRowProperties.FontName = "Segoe UI"
Dim pp As ParagraphProperties = document.BeginUpdateParagraphs(table.FirstRow.Range)
pp.Alignment = ParagraphAlignment.Center
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L35
' Center the table header.
For Each p As DevExpress.XtraRichEdit.API.Native.Paragraph In document.Paragraphs.[Get](tbl.FirstRow.Range)
p.Alignment = DevExpress.XtraRichEdit.API.Native.ParagraphAlignment.Center
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L36
' Center the table header.
For Each p As Paragraph In document.Paragraphs.Get(tbl.FirstRow.Range)
p.Alignment = ParagraphAlignment.Center
See Also