CommentCollection
内容
[
隐藏
]CommentCollection class
封装了一个集合Comment对象.
public class CommentCollection : CollectionBase<Comment>
特性
| 姓名 | 描述 |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| Item { get; } | 获取Comment指定索引处的元素。 (3 indexers) |
| Item { get; set; } |
方法
| 姓名 | 描述 |
|---|---|
| Add(string) | 向集合添加评论。 |
| Add(int, int) | 向集合添加评论。 |
| AddThreadedComment(string, string, ThreadedCommentAuthor) | 添加线程注释。 |
| AddThreadedComment(int, int, string, ThreadedCommentAuthor) | 添加线程注释。 |
| BinarySearch(Comment) | |
| BinarySearch(Comment, IComparer<Comment>) | |
| BinarySearch(int, int, Comment, IComparer<Comment>) | |
| Clear() | 删除所有评论; (2 methods) |
| Contains(Comment) | |
| CopyTo(Comment[]) | |
| CopyTo(Comment[], int) | |
| CopyTo(int, Comment[], int, int) | |
| Exists(Predicate<Comment>) | |
| Find(Predicate<Comment>) | |
| FindAll(Predicate<Comment>) | |
| FindIndex(Predicate<Comment>) | |
| FindIndex(int, Predicate<Comment>) | |
| FindIndex(int, int, Predicate<Comment>) | |
| FindLast(Predicate<Comment>) | |
| FindLastIndex(Predicate<Comment>) | |
| FindLastIndex(int, Predicate<Comment>) | |
| FindLastIndex(int, int, Predicate<Comment>) | |
| GetEnumerator() | |
| GetThreadedComments(string) | 按单元格名称获取线程注释。 |
| GetThreadedComments(int, int) | 按行列索引获取线程评论。 |
| IndexOf(Comment) | |
| IndexOf(Comment, int) | |
| IndexOf(Comment, int, int) | |
| LastIndexOf(Comment) | |
| LastIndexOf(Comment, int) | |
| LastIndexOf(Comment, int, int) | |
| RemoveAt(int) | |
| RemoveAt(string) | 删除特定单元格的注释。 |
| RemoveAt(int, int) | 删除特定单元格的注释。 |
例子
[C#]
Workbook workbook = new Workbook();
CommentCollection comments = workbook.Worksheets[0].Comments;
//做你的事
[Visual Basic]
Dim workbook as Workbook = new Workbook()
Dim comments as CommentCollection = workbook.Worksheets(0).Comments
也可以看看
- class CollectionBase<T>
- class Comment
- 命名空间 Aspose.Cells
- 部件 Aspose.Cells