Back to Devexpress

TableRow.Range Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablerow-0db83db1.md

latest5.9 KB
Original Source

TableRow.Range Property

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

Declaration

csharp
DocumentRange Range { get; }
vb
ReadOnly Property Range As DocumentRange

Property Value

TypeDescription
DocumentRange

A DocumentRange occupied by a row.

|

Remarks

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

csharp
// 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

csharp
//Apply formatting to the header cells
CharacterProperties headerRowProperties = document.BeginUpdateCharacters(table.Rows[2].Range);
headerRowProperties.FontName = "Segoe UI";

spreadsheet-document-api-use-worksheet-table-as-data-source/CS/SpreadsheetDocumentServerAsDataSourceExample/Form1.cs#L67

csharp
ParagraphProperties pp = document.BeginUpdateParagraphs(table.FirstRow.Range);
pp.Alignment = ParagraphAlignment.Center;

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L37

csharp
// Center the table header.
foreach (Paragraph p in document.Paragraphs.Get(tbl.FirstRow.Range))
{

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L41

csharp
// Center the table header.
foreach (Paragraph p in document.Paragraphs.Get(tbl.FirstRow.Range))
{

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L114

vb
' 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

vb
'Apply formatting to the header cells
Dim headerRowProperties As CharacterProperties = document.BeginUpdateCharacters(table.Rows(2).Range)
headerRowProperties.FontName = "Segoe UI"

spreadsheet-document-api-use-worksheet-table-as-data-source/VB/SpreadsheetDocumentServerAsDataSourceExample/Form1.vb#L59

vb
Dim pp As ParagraphProperties = document.BeginUpdateParagraphs(table.FirstRow.Range)
pp.Alignment = ParagraphAlignment.Center

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L35

vb
' 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

vb
' Center the table header.
For Each p As Paragraph In document.Paragraphs.Get(tbl.FirstRow.Range)
    p.Alignment = ParagraphAlignment.Center

See Also

TableRow Interface

TableRow Members

DevExpress.XtraRichEdit.API.Native Namespace