CommentAuthorCollection

CommentAuthorCollection 类

表示评论作者的集合。

public sealed class CommentAuthorCollection : DomObject<Presentation>, ICommentAuthorCollection

属性

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

方法

NameDescription
AddAuthor(string, string)在集合末尾添加新作者。
Clear()从集合中移除所有作者。
CopyTo(Array, int)将集合中的所有元素复制到指定的数组。
FindByName(string)根据名称在集合中查找作者。
FindByNameAndInitials(string, string)根据名称和首字母在集合中查找作者。
GetEnumerator()返回遍历集合的枚举器。
Remove(ICommentAuthor)移除集合中指定作者的第一次出现。
RemoveAt(int)移除集合中指定索引处的作者。
ToArray()创建并返回包含所有作者的数组。

另见