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。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 获取此集合中的评论数量。 |
AsICollection | IList<IComment> | 读取 | 获取 as i 集合。 |
AsIEnumerable | IEnumerable<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) | 检索与给定索引标识符匹配的评论 |