Class ThreadedCommentAuthorCollection
Represents the collection of threaded comment authors on a workbook.
Implements
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ThreadedCommentAuthorCollection : IReadOnlyCollection<ThreadedCommentAuthor>, IEnumerable<ThreadedCommentAuthor>, IEnumerable
Properties
Count
Gets the number of threaded comment authors in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the threaded comment author at the specified index.
Declaration
public ThreadedCommentAuthor this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| ThreadedCommentAuthor |
this[string]
Gets the threaded comment author with the specified display name, or
null if no author with that name exists.
Declaration
public ThreadedCommentAuthor this[string displayName] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | displayName |
Property Value
| Type | Description |
|---|---|
| ThreadedCommentAuthor |
Methods
Add(ThreadedCommentAuthor)
Adds an existing threaded comment author to the collection.
Declaration
public void Add(ThreadedCommentAuthor author)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreadedCommentAuthor | author |
Add(string)
Adds a new threaded comment author with the specified display name and returns the created author.
Declaration
public ThreadedCommentAuthor Add(string displayName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | displayName | The display name of the author. |
Returns
| Type | Description |
|---|---|
| ThreadedCommentAuthor | The newly created ThreadedCommentAuthor. |
GetEnumerator()
Retrieves the requested enumerator from the ThreadedCommentAuthorCollection.
Declaration
public IEnumerator<ThreadedCommentAuthor> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ThreadedCommentAuthor> | The get enumerator returned by the operation. |