ExcelCommentCollection Class
Collection of comments (ExcelComment).
public sealed class ExcelCommentCollection : IEnumerable<ExcelComment>, IEnumerable
Public NotInheritable Class ExcelCommentCollection
Implements IEnumerable(Of ExcelComment), IEnumerable
- Inheritance:
- ExcelCommentCollection
Properties
Count
Gets the number of comments contained in the collection.
Property Value
Item[Int32]
Gets the comment at the specified index.
public ExcelComment this[int index] { get; }
Public ReadOnly Property Item(index As Integer) As ExcelComment
Parameters
index
- Int32
The zero-based index of the comment.
Property Value
The comment at the specified index.
Exceptions
Argument index
is out of range.
Methods
Clear()
Removes all comments.
GetEnumerator()
Returns an enumerator for the collection.
public IEnumerator<ExcelComment> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of ExcelComment)
Returns
An enumerator for the collection.
Remove(ExcelComment)
Removes the first occurrence of a specific ExcelComment from the collection.
public bool Remove(ExcelComment item)
Public Function Remove(item As ExcelComment) As Boolean
Parameters
item
- ExcelComment
The ExcelComment to remove from the collection.
Returns
true if item
is successfully removed; otherwise, false. This method also returns false if item
was not found in the original collection.
RemoveAt(Int32)
Removes the comment at the specified index.
Parameters
index
- Int32
The zero-based index of the comment to remove.
Implements
System.Collections.IEnumerable