Class ThreadedCommentAuthorCollection
Contents
[
Hide
]ThreadedCommentAuthorCollection class
Represents all persons who .
public class ThreadedCommentAuthorCollection : CollectionBase<ThreadedCommentAuthor>
Constructors
| Name | Description |
|---|---|
| ThreadedCommentAuthorCollection() | The default constructor. |
Properties
| Name | Description |
|---|---|
| Capacity { get; set; } | |
| Count { get; } | |
| CurrentPerson { get; set; } | Gets and sets the current user. |
| Item { get; } | Gets the person who create threaded comments. (2 indexers) |
| Item { get; set; } |
Methods
| Name | Description |
|---|---|
| Add(string, string, string) | Adds one thread comment person. |
| BinarySearch(ThreadedCommentAuthor) | |
| BinarySearch(ThreadedCommentAuthor, IComparer<ThreadedCommentAuthor>) | |
| BinarySearch(int, int, ThreadedCommentAuthor, IComparer<ThreadedCommentAuthor>) | |
| Clear() | |
| Contains(ThreadedCommentAuthor) | |
| CopyTo(ThreadedCommentAuthor[]) | |
| CopyTo(ThreadedCommentAuthor[], int) | |
| CopyTo(int, ThreadedCommentAuthor[], int, int) | |
| Exists(Predicate<ThreadedCommentAuthor>) | |
| Find(Predicate<ThreadedCommentAuthor>) | |
| FindAll(Predicate<ThreadedCommentAuthor>) | |
| FindIndex(Predicate<ThreadedCommentAuthor>) | |
| FindIndex(int, Predicate<ThreadedCommentAuthor>) | |
| FindIndex(int, int, Predicate<ThreadedCommentAuthor>) | |
| FindLast(Predicate<ThreadedCommentAuthor>) | |
| FindLastIndex(Predicate<ThreadedCommentAuthor>) | |
| FindLastIndex(int, Predicate<ThreadedCommentAuthor>) | |
| FindLastIndex(int, int, Predicate<ThreadedCommentAuthor>) | |
| GetEnumerator() | |
| IndexOf(ThreadedCommentAuthor) | Gets the index of ThreadedCommentAuthor object (2 methods) |
| IndexOf(ThreadedCommentAuthor, int) | |
| IndexOf(ThreadedCommentAuthor, int, int) | |
| LastIndexOf(ThreadedCommentAuthor) | |
| LastIndexOf(ThreadedCommentAuthor, int) | |
| LastIndexOf(ThreadedCommentAuthor, int, int) | |
| RemoveAt(int) |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using System;
public class ThreadedCommentAuthorCollectionDemo
{
public static void ThreadedCommentAuthorCollectionExample()
{
// Create a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
// Access the ThreadedCommentAuthorCollection
ThreadedCommentAuthorCollection authors = workbook.Worksheets.ThreadedCommentAuthors;
// Add a new threaded comment author
int authorIndex = authors.Add("John Doe", "john.doe@example.com", "providerId123");
// Retrieve the added author
ThreadedCommentAuthor author = authors[authorIndex];
// Set the current person
authors.CurrentPerson = author;
// Display the current person details
Console.WriteLine("Current Person: " + authors.CurrentPerson.Name);
// Save the workbook
workbook.Save("ThreadedCommentAuthorCollectionExample.xlsx");
return;
}
}
}
See Also
- class CollectionBase<T>
- class ThreadedCommentAuthor
- namespace Aspose.Cells
- assembly Aspose.Cells