Aspose::Cells::CommentCollection::GetThreadedComments method

CommentCollection::GetThreadedComments(int32_t, int32_t) method

Gets the threaded comments by row and column index.

ThreadedCommentCollection Aspose::Cells::CommentCollection::GetThreadedComments(int32_t row, int32_t column)
ParameterTypeDescription
rowint32_tThe row index.
columnint32_tThe column index.

ReturnValue

Examples

ThreadedCommentCollection threadedComments1 = comments.GetThreadedComments(1, 1);
for (int i = 0; i < threadedComments1.GetCount(); ++i)
{
    ThreadedComment tc = threadedComments1.Get(i);
    U16String note = tc.GetNotes();
}

See Also

CommentCollection::GetThreadedComments(const U16String&) method

Gets the threaded comments by cell name.

ThreadedCommentCollection Aspose::Cells::CommentCollection::GetThreadedComments(const U16String &cellName)
ParameterTypeDescription
cellNameconst U16String&The name of the cell.

ReturnValue

Examples

U16String comt = u"B2";
ThreadedCommentCollection threadedComments2 = comments.GetThreadedComments(comt);
for (int i = 0; i < threadedComments2.GetCount(); ++i)
{
    ThreadedComment tc = threadedComments2.Get(i);
    U16String note = tc.GetNotes();
}

See Also

CommentCollection::GetThreadedComments(const char16_t*) method

Gets the threaded comments by cell name.

ThreadedCommentCollection Aspose::Cells::CommentCollection::GetThreadedComments(const char16_t *cellName)
ParameterTypeDescription
cellNameconst char16_t*The name of the cell.

ReturnValue

Examples

ThreadedCommentCollection threadedComments2 = comments.GetThreadedComments(u"B2");
for (int i = 0; i < threadedComments2.GetCount(); ++i)
{
    ThreadedComment tc = threadedComments2.Get(i);
    U16String note = tc.GetNotes();
}

See Also