GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    ExcelCommentCollection Class

    Namespace:
    GemBox.Spreadsheet
    Assembly:
    GemBox.Spreadsheet.dll

    Collection of comments (ExcelComment).

    • C#
    • VB.NET
    public sealed class ExcelCommentCollection : IEnumerable<ExcelComment>, IEnumerable
    Public NotInheritable Class ExcelCommentCollection
        Implements IEnumerable(Of ExcelComment), IEnumerable
    Inheritance:
    System.Object
    ExcelCommentCollection
    Implements
    System.Collections.Generic.IEnumerable<ExcelComment>
    System.Collections.IEnumerable

    Properties

    Count

    Gets the number of comments contained in the collection.

    • C#
    • VB.NET
    public int Count { get; }
    Public ReadOnly Property Count As Integer
    Property Value
    System.Int32

    Item[Int32]

    Gets the comment at the specified index.

    • C#
    • VB.NET
    public ExcelComment this[int index] { get; }
    Public ReadOnly Property Item(index As Integer) As ExcelComment
    Parameters
    index
    System.Int32

    The zero-based index of the comment.

    Property Value
    ExcelComment

    The comment at the specified index.

    Exceptions
    System.ArgumentOutOfRangeException

    Argument index is out of range.

    Methods

    Clear()

    Removes all comments.

    • C#
    • VB.NET
    public void Clear()
    Public Sub Clear

    GetEnumerator()

    Returns an enumerator for the collection.

    • C#
    • VB.NET
    public IEnumerator<ExcelComment> GetEnumerator()
    Public Function GetEnumerator As IEnumerator(Of ExcelComment)
    Returns
    System.Collections.Generic.IEnumerator<ExcelComment>

    An enumerator for the collection.

    Remove(ExcelComment)

    Removes the first occurrence of a specific ExcelComment from the collection.

    • C#
    • VB.NET
    public bool Remove(ExcelComment item)
    Public Function Remove(item As ExcelComment) As Boolean
    Parameters
    item
    ExcelComment

    The ExcelComment to remove from the collection.

    Returns
    System.Boolean

    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.

    • C#
    • VB.NET
    public void RemoveAt(int index)
    Public Sub RemoveAt(index As Integer)
    Parameters
    index
    System.Int32

    The zero-based index of the comment to remove.

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.