Метод Comments::getEnumerator
Метод возвращает коллекцию комментариев всего документа.
Пример
Comments comments = document.getRange().getComments();
std::shared_ptr<Enumerator<Comment>> enumerator = comments.getEnumerator();
if (enumerator)
{
while (enumerator->isValid())
{
......................
enumerator->goToNext();
}
}