Creates an
XLComment object and appends it to the collection.
'Declaration
Public Overloads Function Add( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.String, _
ByVal As System.String _
) As XLComment
'Usage
Dim instance As XLCommentCollection
Dim rowIndex As System.Integer
Dim colIndex As System.Integer
Dim author As System.String
Dim text As System.String
Dim value As XLComment
value = instance.Add(rowIndex, colIndex, author, text)
public XLComment Add(
System.int ,
System.int ,
System.string ,
System.string
)
Parameters
- rowIndex
- Index of the top row in the comment.
- colIndex
- Index of the left column in the comment.
- author
- The author of the comment.
- text
- The context of the comment.
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).