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

Comment.Date Property

Gets or sets the comment's creation date.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

DateTime Date { get; set; }
Property Date As Date
DateTime Date { get; set; }
Property Date As Date
DateTime Date { get; set; }
Property Date As Date

Property Value

Type Description
DateTime

A DateTime object that is the comment creation date.

Property Value

Type Description
DateTime

A DateTime object that is the comment creation date.

Property Value

Type Description
DateTime

A DateTime object that is the comment creation date.

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