Back to Devexpress

Section.Range Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-section-2036d162.md

latest2.3 KB
Original Source

Section.Range Property

Retrieves the range occupied by the current section.

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 object that is the section’s range.

|

Remarks

Note

The Range property returns the range of only the section’s main content.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

office-file-api-ai-implementation/CS/Controllers/ProofreadController.cs#L42

csharp
case RichEditDocumentPart.FirstSection:
    var sectionRange = wordProcessor.Document.Sections[0].Range;
    await docProcessingService.ProofreadAsync(sectionRange, cultureInfo);

See Also

Positions and Ranges

Section Interface

Section Members

DevExpress.XtraRichEdit.API.Native Namespace