Represents a collection of CustomPart objects.
You do not normally need to create instances of this class. You access custom parts related to the OOXML package via the PackageCustomParts property.
Shows how to access a document's arbitrary custom parts collection.
#include <Aspose.Words.Cpp/Markup/CustomPartCollection.h>
Public Types | |
using | const_iterator = typename const_iterator |
using | iterator = typename iterator |
using | iterator_holder_type = List< SharedPtr< CustomPart > > |
Public Member Functions | |
CustomPartCollection () | |
void | Add (SharedPtr< CustomPart > part) |
Adds an item 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< CustomPartCollection > | 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< IEnumerator< SharedPtr< CustomPart > > > | 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< CustomPart > | idx_get (int32_t index) |
Gets or sets an item at the specified index. More... | |
void | idx_set (int32_t index, SharedPtr< CustomPart > 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... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
using Aspose::Words::Markup::CustomPartCollection::const_iterator = typename iterator_holder_type::const_iterator |
using Aspose::Words::Markup::CustomPartCollection::iterator = typename iterator_holder_type::iterator |
using Aspose::Words::Markup::CustomPartCollection::iterator_holder_type = System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Markup::CustomPart> > |
Aspose::Words::Markup::CustomPartCollection::CustomPartCollection | ( | ) |
void Aspose::Words::Markup::CustomPartCollection::Add | ( | System::SharedPtr< Aspose::Words::Markup::CustomPart > | part | ) |
Adds an item to the collection.
part | The item to add. |
Shows how to access a document's arbitrary custom parts collection.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void Aspose::Words::Markup::CustomPartCollection::Clear | ( | ) |
Removes all elements from the collection.
Shows how to access a document's arbitrary custom parts collection.
System::SharedPtr<Aspose::Words::Markup::CustomPartCollection> Aspose::Words::Markup::CustomPartCollection::Clone | ( | ) |
Makes a deep copy of this collection and its items.
Shows how to access a document's arbitrary custom parts collection.
|
noexcept |
|
noexcept |
int32_t Aspose::Words::Markup::CustomPartCollection::get_Count | ( | ) |
Gets the number of elements contained in the collection.
Shows how to access a document's arbitrary custom parts collection.
|
override |
Returns an enumerator object that can be used to iterate over all items in the collection.
Shows how to access a document's arbitrary custom parts collection.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Markup::CustomPart> Aspose::Words::Markup::CustomPartCollection::idx_get | ( | int32_t | index | ) |
Gets or sets an item at the specified index.
index | Zero-based index of the item. |
Shows how to access a document's arbitrary custom parts collection.
void Aspose::Words::Markup::CustomPartCollection::idx_set | ( | int32_t | index, |
System::SharedPtr< Aspose::Words::Markup::CustomPart > | value | ||
) |
Gets or sets an item at the specified index.
index | Zero-based index of the item. |
Shows how to access a document's arbitrary custom parts collection.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Markup::CustomPartCollection::RemoveAt | ( | int32_t | index | ) |
Removes an item at the specified index.
index | The zero based index. |
Shows how to access a document's arbitrary custom parts collection.
|
static |