Add()

ICustomXmlPartCollection::Add(System::ArrayPtr<uint8_t>) method

Adds new custom xml part.

virtual System::SharedPtr<ICustomXmlPart> Aspose::Slides::ICustomXmlPartCollection::Add(System::ArrayPtr<uint8_t> xmlData)=0

Arguments

ParameterTypeDescription
xmlDataSystem::ArrayPtr<uint8_t>The xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionxmlData is null.
System::ArgumentExceptionxmlData is empty or invalid.

ICustomXmlPartCollection::Add(System::String) method

Adds new custom xml part.

virtual System::SharedPtr<ICustomXmlPart> Aspose::Slides::ICustomXmlPartCollection::Add(System::String xmlString)=0

Arguments

ParameterTypeDescription
xmlStringSystem::StringThe xml string of new part to be added.

Return Value

Created custom xml part.

Exceptions

ExceptionDescription
System::ArgumentNullExceptionxmlString is null.
System::ArgumentExceptionxmlString is empty or xml-data is invalid.

ICustomXmlPartCollection::Add(System::SharedPtr<System::IO::Stream>) method

Adds new custom xml part.

virtual System::SharedPtr<ICustomXmlPart> Aspose::Slides::ICustomXmlPartCollection::Add(System::SharedPtr<System::IO::Stream> inputStream)=0

Arguments

ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>The inputStream with xml data of new part to be added.

Return Value

Created custom xml part.

Exceptions

ExceptionDescription
System::ArgumentNullExceptioninputStream is null.
System::ArgumentExceptionData in inputStream is empty or Sinvalid.

See Also