Represents a collection of Custom XML Parts. The items are CustomXmlPart objects.
You do not normally need to create instances of this class. You can access custom XML data stored in a document via the CustomXmlParts property.
Shows how to create a structured document tag with custom XML data.
#include <Aspose.Words.Cpp/Markup/CustomXmlPartCollection.h>
Public Types | |
using | const_iterator = typename const_iterator |
using | iterator = typename iterator |
using | iterator_holder_type = List< SharedPtr< CustomXmlPart > > |
using | virtualized_iterator = typename virtualized_iterator |
using | virtualized_iterator_element = typename virtualized_iterator_element |
Public Member Functions | |
CustomXmlPartCollection () | |
void | Add (const SharedPtr< CustomXmlPart > &part) |
Adds an item to the collection. More... | |
SharedPtr< CustomXmlPart > | Add (const String &id, const String &xml) |
Creates a new XML part with the specified XML and adds it to the collection. More... | |
const_iterator | begin () const noexcept |
iterator | begin () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
void | Clear () |
Removes all elements from the collection. More... | |
SharedPtr< CustomXmlPartCollection > | Clone () |
Makes a deep copy of this collection and its items. More... | |
const_iterator | end () const noexcept |
iterator | end () noexcept |
int32_t | get_Count () |
Gets the number of elements contained in the collection. More... | |
SharedPtr< CustomXmlPart > | GetById (const String &id) |
Finds and returns a custom XML part by its identifier. More... | |
SharedPtr< IEnumerator< SharedPtr< CustomXmlPart > > > | GetEnumerator () override |
Returns an enumerator object that can be used to iterate over all items in the collection. More... | |
virtual const TypeInfo & | GetType () const override |
SharedPtr< CustomXmlPart > | idx_get (int32_t index) |
Gets or sets an item at the specified index. More... | |
void | idx_set (int32_t index, const SharedPtr< CustomXmlPart > &value) |
Gets or sets an item at the specified index. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | RemoveAt (int32_t index) |
Removes an item at the specified index. More... | |
virtualized_iterator * | virtualizeBeginConstIterator () const override |
virtualized_iterator * | virtualizeBeginIterator () override |
virtualized_iterator * | virtualizeEndConstIterator () const override |
virtualized_iterator * | virtualizeEndIterator () override |
Static Public Member Functions | |
static const TypeInfo & | Type () |
using Aspose::Words::Markup::CustomXmlPartCollection::const_iterator = typename iterator_holder_type::const_iterator |
using Aspose::Words::Markup::CustomXmlPartCollection::iterator = typename iterator_holder_type::iterator |
using Aspose::Words::Markup::CustomXmlPartCollection::iterator_holder_type = System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> > |
using Aspose::Words::Markup::CustomXmlPartCollection::virtualized_iterator = typename iterator_holder_type::virtualized_iterator |
using Aspose::Words::Markup::CustomXmlPartCollection::virtualized_iterator_element = typename iterator_holder_type::virtualized_iterator_element |
Aspose::Words::Markup::CustomXmlPartCollection::CustomXmlPartCollection | ( | ) |
void Aspose::Words::Markup::CustomXmlPartCollection::Add | ( | const System::SharedPtr< Aspose::Words::Markup::CustomXmlPart > & | part | ) |
Adds an item to the collection.
part | The custom XML part to add. |
Shows how to create a structured document tag with custom XML data.
System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> Aspose::Words::Markup::CustomXmlPartCollection::Add | ( | const System::String & | id, |
const System::String & | xml | ||
) |
Creates a new XML part with the specified XML and adds it to the collection.
id | Identifier of a new custom XML part. |
xml | XML data of the part. |
Shows how to create a structured document tag with custom XML data.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void Aspose::Words::Markup::CustomXmlPartCollection::Clear | ( | ) |
Removes all elements from the collection.
Shows how to create a structured document tag with custom XML data.
System::SharedPtr<Aspose::Words::Markup::CustomXmlPartCollection> Aspose::Words::Markup::CustomXmlPartCollection::Clone | ( | ) |
Makes a deep copy of this collection and its items.
Shows how to create a structured document tag with custom XML data.
|
noexcept |
|
noexcept |
int32_t Aspose::Words::Markup::CustomXmlPartCollection::get_Count | ( | ) |
Gets the number of elements contained in the collection.
Shows how to create a structured document tag with custom XML data.
System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> Aspose::Words::Markup::CustomXmlPartCollection::GetById | ( | const System::String & | id | ) |
Finds and returns a custom XML part by its identifier.
id | Case-sensitive string that identifies the custom XML part. |
null
if a custom XML part with the specified identifier is not found.Shows how to create a structured document tag with custom XML data.
|
override |
Returns an enumerator object that can be used to iterate over all items in the collection.
Shows how to create a structured document tag with custom XML data.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> Aspose::Words::Markup::CustomXmlPartCollection::idx_get | ( | int32_t | index | ) |
Gets or sets an item at the specified index.
index | Zero-based index of the item. |
Shows how to create a structured document tag with custom XML data.
void Aspose::Words::Markup::CustomXmlPartCollection::idx_set | ( | int32_t | index, |
const System::SharedPtr< Aspose::Words::Markup::CustomXmlPart > & | value | ||
) |
Gets or sets an item at the specified index.
index | Zero-based index of the item. |
Shows how to create a structured document tag with custom XML data.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Markup::CustomXmlPartCollection::RemoveAt | ( | int32_t | index | ) |
Removes an item at the specified index.
index | The zero based index. |
Shows how to create a structured document tag with custom XML data.
|
static |
|
override |
|
override |
|
override |
|
override |