[]
Represents a collection of Comment elements.
public class CommentCollection : ContentRangeCollection<Comment>, IContentList<Comment>, IReadOnlyList<Comment>, IReadOnlyCollection<Comment>, IEnumerable<Comment>, IEnumerable
public Comment Add(string text = null, string author = null)
Adds a Comment to this collection.
public Comment Add(string text, string author, DateTime date)
text stringThe new comment text.
author stringThe new comment author.
date DateTimeThe new comment date.
Adds a Comment to this collection.
public Comment Add(string text, string author, DateTime date, string initials)
text stringThe new comment text.
author stringThe new comment author.
date DateTimeThe new comment date.
initials stringThe new comment author initials.
Checks whether this collection contains a comment with the specified ID.
public bool Contains(long id)
id longThe comment ID.
True if the collection contains a comment with the specified ID, false otherwise.
Gets a comment from this collection by its ID.
public Comment GetByID(long id)
id longThe comment ID.
Throws if the comment with the specified ID was not found in the collection.
Inserts a Comment into this collection at the specified location.
public Comment Insert(RangeLocation location)
location RangeLocationThe target RangeLocation for the insertion.
Inserts a Comment into this collection at the specified location.
public Comment Insert(string text, string author, RangeLocation location)
text stringThe new comment text.
author stringThe new comment author.
location RangeLocationThe target RangeLocation for the insertion.
Inserts a Comment into this collection at the specified location.
public Comment Insert(string text, string author, DateTime date, RangeLocation location)
text stringThe new comment text.
author stringThe new comment author.
date DateTimeThe new comment date.
location RangeLocationThe target RangeLocation for the insertion.
Inserts a Comment into this collection at the specified location.
public Comment Insert(string text, string author, DateTime date, string initials, RangeLocation location)
text stringThe new comment text.
author stringThe new comment author.
date DateTimeThe new comment date.
initials stringThe new comment author initials.
location RangeLocationThe target RangeLocation for the insertion.