Метод Aspose::Words::Tables::Row::get_PreviousRow
Row::get_PreviousRow method
Получает предыдущий узел Row.
System::SharedPtr<Aspose::Words::Tables::Row> Aspose::Words::Tables::Row::get_PreviousRow()
Примеры
Показывает, как перечислять все ячейки таблицы.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Tables.docx");
System::SharedPtr<Aspose::Words::Tables::Table> table = doc->get_FirstSection()->get_Body()->get_Tables()->idx_get(0);
// Перечислите все ячейки таблицы.
for (System::SharedPtr<Aspose::Words::Tables::Row> row = table->get_FirstRow(); row != nullptr; row = row->get_NextRow())
{
for (System::SharedPtr<Aspose::Words::Tables::Cell> cell = row->get_FirstCell(); cell != nullptr; cell = cell->get_NextCell())
{
std::cout << cell->GetText() << std::endl;
}
}
См. также
- Class Row
- Class Row
- Namespace Aspose::Words::Tables
- Library Aspose.Words for C++