Class ModernCommentCollection
Represents the top-level threaded comments belonging to a presentation slide. Replies are exposed through each ModernComment instance.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class ModernCommentCollection : IEnumerable<ModernComment>, IEnumerable
Properties
Count
Gets the number of top-level threaded comments.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets a top-level threaded comment by zero-based index.
Declaration
public ModernComment this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| ModernComment |
Methods
Add(ModernComment)
Appends an existing top-level threaded comment.
Declaration
public void Add(ModernComment comment)
Parameters
| Type | Name | Description |
|---|---|---|
| ModernComment | comment | The comment to append. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
Add(string, CommentAuthor)
Creates and appends a top-level threaded comment.
Declaration
public ModernComment Add(string text, CommentAuthor author)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The comment text. |
| CommentAuthor | author | The comment author. |
Returns
| Type | Description |
|---|---|
| ModernComment | The newly created comment. |
Clear()
Removes all top-level threaded comments.
Declaration
public void Clear()
GetEnumerator()
Returns an enumerator over top-level threaded comments.
Declaration
public IEnumerator<ModernComment> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ModernComment> |
Remove(ModernComment)
Removes a top-level threaded comment.
Declaration
public bool Remove(ModernComment comment)
Parameters
| Type | Name | Description |
|---|---|---|
| ModernComment | comment | The comment to remove. |
Returns
| Type | Description |
|---|---|
| bool |
|