Aspose::Words::DocumentBuilder::MoveToSection method

DocumentBuilder::MoveToSection method

Moves the cursor to the beginning of the body in a specified section.

void Aspose::Words::DocumentBuilder::MoveToSection(int32_t sectionIndex)
ParameterTypeDescription
sectionIndexint32_tThe index of the section to move to.

Remarks

When sectionIndex is greater than or equal to 0, it specifies an index from the beginning of the document with 0 being the first section. When sectionIndex is less than 0, it specified an index from the end of the document with -1 being the last section.

The cursor is moved to the first paragraph in the Body of the specified section.

See Also