officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-revision-0e51d9b8.md
Returns the author of the revision.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
string Author { get; }
ReadOnly Property Author As String
| Type | Description |
|---|---|
| String |
A string value that is the author’s name.
|
Use the Author property to obtain an author of a current revision.
The code sample below shows how to retrieve all revision authors:
using System.Linq;
//Get all revision authors
var authors = documentRevisions.Select(x => x.Author).Distinct();
Imports System.Linq
'Get all revision authors
Private authors = documentRevisions.Select(Function(x) x.Author).Distinct()
Tip
Call the Document.GetAuthors() method to retrieve all annotation authors (including comment authors).
The following code snippets (auto-collected from DevExpress Examples) contain references to the Author 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.
word-document-api-use-track-changes/CS/word-processing-document-api-track-changes/Program.cs#L42
//Reject all revisions from the specific author on the first section:
var sectionRevisions = documentRevisions.Get(documentProcessor.Document.Sections[0].Range).Where(x => x.Author == "Janet Leverling");
winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L53
//Reject all revisions from the specific author on the first section:
var sectionRevisions = documentRevisions.Get(richEditControl1.Document.Sections[0].Range).Where(x => x.Author == "Janet Leverling");
wpf-richedit-manage-tracked-changes/CS/DXRichEdit_TrackChanges/MainWindow.xaml.cs#L36
//Reject all revisions from the specific author on the first section:
var sectionRevisions = documentRevisions.Get(richEditControl1.Document.Sections[0].Range).Where(x => x.Author == "Janet Leverling");
word-document-api-use-track-changes/VB/word-processing-document-api-track-changes/Program.vb#L39
'Reject all revisions from the specific author on the first section:
Dim sectionRevisions = documentRevisions.Get(documentProcessor.Document.Sections(0).Range).Where(Function(x) x.Author = "Janet Leverling")
winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L44
'Reject all revisions from the specific author on the first section:
Dim sectionRevisions = documentRevisions.Get(richEditControl1.Document.Sections(0).Range).Where(Function(x) Equals(x.Author, "Janet Leverling"))
For Each revision As Revision In sectionRevisions
wpf-richedit-manage-tracked-changes/VB/DXRichEdit_TrackChanges/MainWindow.xaml.vb#L29
'Reject all revisions from the specific author on the first section:
Dim sectionRevisions = documentRevisions.Get(Me.richEditControl1.Document.Sections(CInt(0)).Range).Where(Function(x) Equals(x.Author, "Janet Leverling"))
For Each revision As Revision In sectionRevisions
See Also