.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Comment.Author Property

Specifies the comment's author.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

string Author { get; set; }
Property Author As String
string Author { get; set; }
Property Author As String
string Author { get; set; }
Property Author As String

Property Value

Type Description
String

A String value, specifying the author of the comment.

Property Value

Type Description
String

A String value, specifying the author of the comment.

Property Value

Type Description
String

A String value, specifying the author of the comment.

Remarks

When a new comment is created, its default author is specified by the CommentOptions.Author property.

Examples

Document document = server.Document;
document.LoadDocument("Documents\\Grimm.docx", DocumentFormat.OpenXml);
int commentCount = document.Comments.Count;
if (commentCount > 0)
{
    document.BeginUpdate();
    Comment comment = document.Comments[document.Comments.Count - 1];
    comment.Name = "New Name";
    comment.Date = DateTime.Now;
    comment.Author = "New Author";
    document.EndUpdate();
}
See Also