Table — Aspose.Slides FOSS for C++ API Reference
ImageRenderOptions Table 클래스는 슬라이드의 표 모양을 나타냅니다. 표는 행과 열의 셀로 구성되며, 각 셀은 자체적인 TextFrame.
ImageRenderOptions: Aspose::Slides::Foss
#include <Aspose/Slides/Foss/table.h>class TableImageRenderOptions: include/Aspose/Slides/Foss/table.h
관련 클래스
ImageRenderOptions
다음에 정의됨 include/Aspose/Slides/Foss/row.h. 주요 멤버:
| ImageRenderOptions | ImageRenderOptions |
|---|---|
cells() | 반환합니다 ICellCollection 이 행에 대한. |
row_format() | 행 서식 설정. |
ImageRenderOptions
다음에 정의됨 include/Aspose/Slides/Foss/column.h. 주요 멤버:
| ImageRenderOptions | ImageRenderOptions |
|---|---|
cells() | 반환합니다 ICellCollection 이 열에 대한. |
column_format() | 열 서식 설정. |
ImageRenderOptions
다음에 정의됨 include/Aspose/Slides/Foss/cell.h. 주요 멤버:
| ImageRenderOptions | ImageRenderOptions | ImageRenderOptions |
|---|---|---|
text_frame() | ImageRenderOptions | TextFrame 셀 텍스트를 포함하는. |
cell_format() | ImageRenderOptions | 셀 테두리 및 채우기 서식. |
text_vertical_type() | ImageRenderOptions | 수직 텍스트 방향. |
text_anchor_type() | ImageRenderOptions | 셀 내부의 텍스트 고정. |
RowCollection / ColumnCollection
메서드를 갖는 반복 가능한 컬렉션:
| ImageRenderOptions | ImageRenderOptions |
|---|---|
size() | 행/열 수. |
add_clone(...) | 행/열을 복제하고 추가. |
insert_clone(...) | 복제하고 지정 위치에 삽입. |
remove_at(int index) | 인덱스에서 제거합니다. |
begin() / end() | Iterator 지원. |
사용 예시
#include <Aspose/Slides/Foss/presentation.h>
using namespace Aspose::Slides::Foss;
Presentation prs("deck.pptx");
// Access a table shape on slide 0
// auto& table = dynamic_cast<Table&>(prs.slides()[0].shapes()[0]);
// for (auto& row : table.rows()) {
// for (auto& cell : row.cells()) {
// std::cout << cell.text_frame()->text() << "\t";
// }
// std::cout << std::endl;
// }