Back to Devexpress

AnnotationOptions.VisibleAuthors Property

officefileapi-devexpress-dot-xtrarichedit-dot-annotationoptions-439fcf4e.md

latest2.8 KB
Original Source

AnnotationOptions.VisibleAuthors Property

Provides access to the visible reviewer’s names collection.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public IList<string> VisibleAuthors { get; }
vb
Public ReadOnly Property VisibleAuthors As IList(Of String)

Property Value

TypeDescription
IList<String>

A IList<T> object that is the collection of visible author’s names.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to VisibleAuthors
RichEditControlOptionsBase

.Annotations .VisibleAuthors

|

Remarks

Set the AnnotationOptions.ShowAllAuthors property to false to disable showing annotations from authors. Then you can use the AnnotationOptions.VisibleAuthors property to remove or add reviewers whose annotations (comments and tracked changes) should be displayed.

csharp
richEditControl.Options.Annotations.Author = "Anne Dodsworth";

//Disable showing revisions from all authors
richEditControl.Options.Annotations.ShowAllAuthors = false;

//Remove authors whose revisions should not be displayed:
richEditControl.Options.Annotations.VisibleAuthors.Remove("Ryan Anita W");
richEditControl.Options.Annotations.VisibleAuthors.Remove("Michael Suyama");
vb
richEditControl.Options.Annotations.Author = "Anne Dodsworth"

'Disable showing revisions from all authors
richEditControl.Options.Annotations.ShowAllAuthors = False

'Remove authors whose revisions should not be displayed:
richEditControl.Options.Annotations.VisibleAuthors.Remove("Ryan Anita W")
richEditControl.Options.Annotations.VisibleAuthors.Remove("Michael Suyama")

See Also

AnnotationOptions Class

AnnotationOptions Members

DevExpress.XtraRichEdit Namespace