Represents a collection of custom XML attributes or smart tag properties.
Items are CustomXmlProperty objects.
Shows how to work with smart tag properties to get in depth information about smart tags.
#include <Aspose.Words.Cpp/Markup/CustomXmlPropertyCollection.h>
Public Member Functions | |
void | Add (const SharedPtr< CustomXmlProperty > &property) |
Adds a property to the collection. More... | |
void | Clear () |
Removes all elements from the collection. More... | |
bool | Contains (const String &name) |
Determines whether the collection contains a property with the given name. More... | |
int32_t | get_Count () |
Gets the number of elements contained in the collection. More... | |
SharedPtr< IEnumerator< SharedPtr< CustomXmlProperty > > > | 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< CustomXmlProperty > | idx_get (const String &name) |
Gets a property with the specified name. More... | |
SharedPtr< CustomXmlProperty > | idx_get (int32_t index) |
Gets a property at the specified index. More... | |
int32_t | IndexOfKey (const String &name) |
Returns the zero-based index of the specified property in the collection. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | Remove (const String &name) |
Removes a property with the specified name from the collection. More... | |
void | RemoveAt (int32_t index) |
Removes a property at the specified index. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
void Aspose::Words::Markup::CustomXmlPropertyCollection::Add | ( | const System::SharedPtr< Aspose::Words::Markup::CustomXmlProperty > & | property | ) |
Adds a property to the collection.
property | The property to add. |
Shows how to work with smart tag properties to get in depth information about smart tags.
void Aspose::Words::Markup::CustomXmlPropertyCollection::Clear | ( | ) |
Removes all elements from the collection.
Shows how to work with smart tag properties to get in depth information about smart tags.
bool Aspose::Words::Markup::CustomXmlPropertyCollection::Contains | ( | const System::String & | name | ) |
Determines whether the collection contains a property with the given name.
name | Case-sensitive name of the property to locate. |
Shows how to work with smart tag properties to get in depth information about smart tags.
int32_t Aspose::Words::Markup::CustomXmlPropertyCollection::get_Count | ( | ) |
Gets the number of elements contained in the collection.
Shows how to work with smart tag properties to get in depth information about smart tags.
|
override |
Returns an enumerator object that can be used to iterate over all items in the collection.
Shows how to work with smart tag properties to get in depth information about smart tags.
|
overridevirtual |
Reimplemented from System::Object.
System::SharedPtr<Aspose::Words::Markup::CustomXmlProperty> Aspose::Words::Markup::CustomXmlPropertyCollection::idx_get | ( | const System::String & | name | ) |
Gets a property with the specified name.
name | Case-sensitive name of the property to locate. |
Shows how to work with smart tag properties to get in depth information about smart tags.
System::SharedPtr<Aspose::Words::Markup::CustomXmlProperty> Aspose::Words::Markup::CustomXmlPropertyCollection::idx_get | ( | int32_t | index | ) |
Gets a property at the specified index.
index | Zero-based index of the property. |
Shows how to work with smart tag properties to get in depth information about smart tags.
int32_t Aspose::Words::Markup::CustomXmlPropertyCollection::IndexOfKey | ( | const System::String & | name | ) |
Returns the zero-based index of the specified property in the collection.
name | The case-sensitive name of the property. |
Shows how to work with smart tag properties to get in depth information about smart tags.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Markup::CustomXmlPropertyCollection::Remove | ( | const System::String & | name | ) |
Removes a property with the specified name from the collection.
name | The case-sensitive name of the property. |
Shows how to work with smart tag properties to get in depth information about smart tags.
void Aspose::Words::Markup::CustomXmlPropertyCollection::RemoveAt | ( | int32_t | index | ) |
Removes a property at the specified index.
index | The zero based index. |
Shows how to work with smart tag properties to get in depth information about smart tags.
|
static |