Back to Devexpress

AnnotationOptions Class

officefileapi-devexpress-dot-xtrarichedit-b0ae5b0c.md

latest3.3 KB
Original Source

AnnotationOptions Class

Provides options for annotations (comments and tracked changes).

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[ComVisible(false)]
public class AnnotationOptions :
    RichEditAnnotationOptionsBase
vb
<ComVisible(False)>
Public Class AnnotationOptions
    Inherits RichEditAnnotationOptionsBase

The following members return AnnotationOptions objects:

Remarks

The AnnotationOptions class provides options used to manage annotation authors and display options for comments and tracked changes.

Use the AnnotationOptions.Comments property to access comment options. The AnnotationOptions.TrackChanges property provides access to Track Changes options.

The AnnotationOptions.Author, AnnotationOptions.ShowAllAuthors and AnnotationOptions.VisibleAuthors property values are common for all annotations.

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")

Implements

INotifyPropertyChanged

Inheritance

Object ViewStatePersisterCore BaseOptions RichEditNotificationOptions DevExpress.XtraRichEdit.RichEditAnnotationOptionsBase AnnotationOptions

See Also

AnnotationOptions Members

DevExpress.XtraRichEdit Namespace