get_AllCustomXmlParts()

Presentation::get_AllCustomXmlParts() method

Returns all custom data parts in the presentaion. Read-only ICustomXmlPart[].

System::ArrayPtr<System::SharedPtr<ICustomXmlPart>> Aspose::Slides::Presentation::get_AllCustomXmlParts() override

Remarks

The following examples show how to clear all custom xml parts from PowerPoint Presentation.

auto pres = System::MakeObject<Presentation>(u"PresentationWithCustomXml.pptx");

// Iterate all custom XML Parts
for (System::SharedPtr<ICustomXmlPart> item : pres->get_AllCustomXmlParts())
{
    item->Remove();
}

pres->Save(u"out.pptx", SaveFormat::Pptx);

See Also