Aspose::Cells::CommentCollection::Get method

CommentCollection::Get(int32_t) method

Gets the Comment element at the specified index.

Comment Aspose::Cells::CommentCollection::Get(int32_t index)
ParameterTypeDescription
indexint32_tThe zero based index of the element.

ReturnValue

The element at the specified index.

Examples

Comment comment3 = comments.Get(0);
comment3.SetNote(u"Three note.");

See Also

CommentCollection::Get(const U16String&) method

Gets the Comment element at the specified cell.

Comment Aspose::Cells::CommentCollection::Get(const U16String &cellName)
ParameterTypeDescription
cellNameconst U16String&Cell name.

ReturnValue

The element at the specified cell.

Examples

U16String val = u"B2";
Comment comment4 = comments.Get(val);
comment4.SetNote(u"Four note.");

See Also

CommentCollection::Get(const char16_t*) method

Gets the Comment element at the specified cell.

Comment Aspose::Cells::CommentCollection::Get(const char16_t *cellName)
ParameterTypeDescription
cellNameconst char16_t*Cell name.

ReturnValue

The element at the specified cell.

Examples

Comment comment4 = comments.Get(u"B2");
comment4.SetNote(u"Four note.");

See Also

CommentCollection::Get(int32_t, int32_t) method

Gets the Comment element at the specified row index and column index.

Comment Aspose::Cells::CommentCollection::Get(int32_t row, int32_t column)
ParameterTypeDescription
rowint32_tRow index.
columnint32_tColumn index.

ReturnValue

The element at the specified cell.

Examples

Comment comment5 = comments.Get(1, 1);
comment5.SetNote(u"Five note.");

See Also