• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ModernCommentCollection

Represents the top-level threaded comments belonging to a presentation slide. Replies are exposed through each ModernComment instance.

Inheritance
object
ModernCommentCollection
Implements
IEnumerable<ModernComment>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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 comment is null.

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

true when the comment was removed.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX