CommentCollection

CommentCollection

概述

CommentCollection 是 Aspose.Slides FOSS 用于 .NET 的一个类。继承自:ICommentCollection。

表示在演示文稿的所有幻灯片中由同一作者撰写的评论集合。

此类提供 8 个用于在 .NET 程序中处理 CommentCollection 对象的方法。可用方法包括:AddComment、Clear、FindCommentByIdx、InsertComment、Remove、RemoveAt、ToArray。在安装 Aspose.Slides FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:AsICollection、AsIEnumerable、Count。

属性

名称类型访问描述
Countint读取获取此集合中的评论数量。
AsICollectionIList<IComment>读取获取 as i 集合。
AsIEnumerableIEnumerable<IComment>读取获取作为 i 可枚举的集合。

方法

签名描述
ToArray()返回从起始索引开始、给定计数的评论子数组
ToArray(start: int, count: int)在此 CommentCollection 实例上调用 ToArray(start, count)。
AddComment(text: string, slide: ISlide, position: PointF, creationTime: DateTime)创建并添加一条包含文本、幻灯片、位置和创建时间的评论。
InsertComment(index: int, text: string, slide: ISlide, position: PointF, creationTime: DateTime)在指定索引处插入一条带有给定详情的新评论。
RemoveAt(index: int)删除位于提供的索引处的评论。
Remove(comment: IComment)从集合中删除指定的 IComment 实例
Clear()从集合中移除所有评论
FindCommentByIdx(idx: int)检索与给定索引标识符匹配的评论

另请参阅

 中文