RowCollection

개요

RowCollection 은(는) Aspose.Slides FOSS for C++ 에서 제공되는 클래스입니다.

테이블의 행 컬렉션을 나타냅니다.

이 클래스는 C++ 프로그램에서 RowCollection 객체를 다루기 위한 21개의 메서드를 제공합니다. 사용 가능한 메서드에는 RowCollection, add, add_clone, as_i_collection, as_i_enumerable, begin, clear, const_iterator, end, init_internal, insert_clone, iterator 및 추가 4개의 메서드가 포함됩니다. 모든 public 멤버는 Aspose.Slides FOSS for C++ 패키지를 설치한 후 어느 C++ 애플리케이션에서도 접근할 수 있습니다. 속성: const_iterator, iterator.

속성

이름유형액세스설명
iteratoriterator읽기이터레이터를 가져옵니다.
const_iteratorconst_iterator읽기const 반복자를 가져옵니다.

메서드

시그니처설명
iterator() → iterator속성은 컬렉션에 대한 반복자 유형에 대한 접근을 제공합니다.
iterator() → iterator
const_iterator() → const_iterator행 컬렉션의 시작을 가리키는 const iterator를 반환합니다
const_iterator() → const_iterator
RowCollection()
~RowCollection()
init_internal(tbl_element: pugi::xml_node, save_callback: std::function<void()>, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide, table: Table)컬렉션을 XML 요소에서 초기화합니다. 모든 자식을 파싱하고 해당 Row 객체를 생성합니다.
rebuild()저장된 XML 요소에서 rows 리스트를 재구성합니다. 기존 rows를 삭제하고 모든 자식을 다시 파싱합니다.
size() → std::size_t행의 수를 반환합니다.
add(row: std::unique_ptr<Row>) → Row컬렉션에 행을 추가합니다.
add_clone(templ: Row, with_attached_rows: bool) → std::vector<Row*>주어진 템플릿 행을 복제하여 끝에 추가합니다.
insert_clone(index: std::size_t, templ: Row, with_attached_rows: bool) → std::vector<Row*>주어진 템플릿 행을 복제하여 지정된 인덱스에 삽입합니다.
remove_at(first_row_index: std::size_t, with_attached_rows: bool)주어진 인덱스에 있는 행을 제거합니다.
remove_at(index: std::size_t)주어진 인덱스에 있는 행을 제거합니다.
clear()모든 행을 제거합니다.
as_i_collection() → std::vector<Row*>행들의 스냅샷을 원시 포인터로 반환합니다.
as_i_enumerable() → std::vector<Row*>행들의 스냅샷을 원시 포인터로 반환합니다 (as_i_collection와 동일).
begin() → iterator
end() → iterator
begin() → const_iterator
end() → const_iterator

참조

 한국어