ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLCommentCollection Class / Insert Method
Position where the object will be inserted.
Object to insert in the collection.

In This Topic
    Insert Method (XLCommentCollection)
    In This Topic
    Inserts an XLComment object at a specific position in the collection.
    Syntax
    'Declaration
     
    Public Function Insert( _
       ByVal index As System.Integer, _
       ByVal comment As XLComment _
    ) As XLComment
    public XLComment Insert( 
       System.int index,
       XLComment comment
    )

    Parameters

    index
    Position where the object will be inserted.
    comment
    Object to insert in the collection.

    Return Value

    A reference to the object if it was successfully added to the collection, or null if the object could not be added to the collection (usually because it overlaps another comment already in the collection).
    See Also