CommentCollection

CommentCollection class

代表一个作者的评论集合。

public sealed class CommentCollection : DomObject<CommentAuthor>, ICommentCollection

Properties

名称描述
Count { get; }获取集合中实际包含的元素数量。只读 Int32。
IsSynchronized { get; }返回一个值,指示对集合的访问是否是同步的(线程安全)。只读 Boolean。
Item { get; }获取指定索引处的元素。只读 Comment
SyncRoot { get; }返回同步根。只读 Object。

Methods

名称描述
AddComment(string, ISlide, PointF, DateTime)在集合末尾添加新评论。
AddModernComment(string, ISlide, IShape, PointF, DateTime)在集合末尾添加新现代评论。
Clear()从集合中移除所有评论。
CopyTo(Array, int)将集合中的所有元素复制到指定数组。
FindCommentByIdx(int)通过索引在集合中查找评论。
GetEnumerator()返回一个枚举器,用于迭代集合。
InsertComment(int, string, ISlide, PointF, DateTime)在指定索引处将新评论插入集合。
InsertModernComment(int, string, ISlide, IShape, PointF, DateTime)在指定索引处将新现代评论插入集合。
Remove(IComment)移除集合中指定评论的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。
ToArray()创建并返回一个包含所有评论的数组。
ToArray(int, int)创建并返回一个包含指定范围内所有评论的数组。

另见