[]
Represents a comment range in a body content.
public class Comment : ContentRange, IBrowsable<Comment>
Gets the parent Comment for comments that are replies to an existing comment.
For new (top-level) comments returns null.
public Comment Ancestor { get; }
Gets or sets the author of this comment.
public string Author { get; set; }
Gets the content of this comment.
public Body Body { get; }
Gets or sets the date of this comment.
public DateTime Date { get; set; }
Gets or sets a value indicating whether the comment has been marked closed.
public bool Done { get; set; }
Gets or sets a value indicating that the end annotation's placement shall be directly linked with the location of the physical presentation of a custom XML element in the document.
public DisplacedByCustomXml EndDisplacedByCustomXml { get; set; }
Gets the unique ID of this comment.
public long ID { get; }
Gets or sets the initials of the author of this comment.
public string Initials { get; set; }
This information can be used to format and present the associated comment, or in any user interface supported by an application. If there is more than one author with the same initials, it might be more useful to display the author name.
Gets the next comment.
public Comment Next { get; }
Gets the previous comment.
public Comment Previous { get; }
Gets the comment content reference mark that links to this comment content.
public CommentReference Reference { get; }
Gets the list of child Comment objects that are replies to this comment.
public IReadOnlyList<Comment> Replies { get; }
Gets or sets a value indicating that the start annotation's placement shall be directly linked with the location of the physical presentation of a custom XML element in the document.
public DisplacedByCustomXml StartDisplacedByCustomXml { get; set; }
Deletes this comment from the parent Body.
public override void Delete()
Deletes this comment and optionally all replies associated with it from the parent Body.
public void Delete(bool includeReplies)
includeReplies
boolIndicates whether to delete all replies associated with this comment.
public Comment Reply(string text, string author, DateTime date, string initials)
text
stringThe new comment text.
author
stringThe new comment author.
date
System.DateTimeThe new comment date.
initials
stringThe new comment author initials.
The newly added reply.
public Comment Reply(string text, string author, DateTime date)
text
stringThe new comment text.
author
stringThe new comment author.
date
System.DateTimeThe new comment date.
The newly added reply.
public Comment Reply(string text, string author)
text
stringThe new comment text.
author
stringThe new comment author.
The newly added reply.
Gets string representation of the content.
public override string ToString()
String representation of the content.