Defines properties specific to a list label.
- Examples
Shows how to extract the list labels of all paragraphs that are list items.
auto doc = MakeObject<Document>(MyDir + u"Rendering.docx");
doc->UpdateListLabels();
for (auto paragraph : System::IterateOver(
paras->LINQ_OfType<SharedPtr<Paragraph>>()->LINQ_Where([](SharedPtr<Paragraph> p) { return p->get_ListFormat()->get_IsListItem(); })))
{
std::cout << "List item paragraph #" << paras->IndexOf(paragraph) << std::endl;
std::cout << "\tExported Text: " << paragraphText << std::endl;
SharedPtr<ListLabel> label = paragraph->get_ListLabel();
std::cout << "\tNumerical Id: " << label->get_LabelValue() << std::endl;
std::cout << "\tList label combined with text: " << label->get_LabelString() << " " << paragraphText << std::endl;
}