Back to Devexpress

Revision.Range Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-revision.md

latest1.9 KB
Original Source

Revision.Range Property

Retrieves a range related to the revision.

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 range related to the current revision.

|

Remarks

The Range property retrieves the range after the revision.

The code sample below rejects all revisions on the first page from a specific author. The Revision.Range property is used to determine a section that contains the revision range:

csharp
//Reject all revisions on the first page from the specified author:
documentRevisions.RejectAll(x => x.Author == "Janet Leverling" && documentProcessor.Document.Sections[0] == documentProcessor.Document.GetSection(x.Range.Start));
vb
documentRevisions.RejectAll(Function(x) x.Author = "Janet Leverling" AndAlso documentProcessor.Document.Sections(0) = documentProcessor.Document.GetSection(x.Range.Start))

See Also

Revision Interface

Revision Members

DevExpress.XtraRichEdit.API.Native Namespace