Aspose::Words::Fields::FieldToc::set_CaptionlessTableOfFiguresLabel method

FieldToc::set_CaptionlessTableOfFiguresLabel method

Sets the name of the sequence identifier used when building a table of figures that does not include caption’s label and number.

void Aspose::Words::Fields::FieldToc::set_CaptionlessTableOfFiguresLabel(const System::String & value)

Examples

Shows how to set the name of the sequence identifier.

auto doc = System::MakeObject<Aspose::Words::Document>();
auto builder = System::MakeObject<Aspose::Words::DocumentBuilder>(doc);

auto fieldToc = System::ExplicitCast<Aspose::Words::Fields::FieldToc>(builder->InsertField(FieldType::FieldTOC, true));
fieldToc->set_CaptionlessTableOfFiguresLabel(u"Test");

ASSERT_EQ(fieldToc->GetFieldCode(), u" TOC  \\a Test");

See Also