Base class for IBuiltInDocumentPropertyCollection and ICustomDocumentPropertyCollection collections.
More...
Inherits IEnumerable, and Object.
Inherited by Aspose::Cells::Properties::IBuiltInDocumentPropertyCollection [virtual]
, and Aspose::Cells::Properties::ICustomDocumentPropertyCollection [virtual]
.
Base class for IBuiltInDocumentPropertyCollection and ICustomDocumentPropertyCollection collections.
[C++]
intrusive_ptr<Aspose::Cells::Properties::ICustomDocumentPropertyCollection> customProperties =
workbook->GetIWorksheets()->GetICustomDocumentProperties();
intrusive_ptr<Aspose::Cells::Properties::IDocumentProperty> customProperty1 = customProperties->GetIndexObject(3);
intrusive_ptr<Aspose::Cells::Properties::IDocumentProperty> customProperty2 = customProperties->GetIndexObject(new String("Owner"));
◆ add_ref()
virtual void Aspose::Cells::Properties::IDocumentPropertyCollection::add_ref |
( |
| ) |
|
|
inlinevirtual |
◆ Clear()
virtual void Aspose::Cells::Properties::IDocumentPropertyCollection::Clear |
( |
| ) |
|
|
pure virtual |
Removes all properties from the collection.
◆ Contains()
virtual bool Aspose::Cells::Properties::IDocumentPropertyCollection::Contains |
( |
intrusive_ptr< Aspose::Cells::Systems::String > |
name | ) |
|
|
pure virtual |
Returns true if a property with the specified name exists in the collection.
- Parameters
-
name | The case-insensitive name of the property. |
- Returns
- True if the property exists in the collection; false otherwise.
◆ GetCount()
virtual Aspose::Cells::Systems::Int32 Aspose::Cells::Properties::IDocumentPropertyCollection::GetCount |
( |
| ) |
|
|
pure virtual |
Gets number of items in the collection.
◆ GetEnumerator()
virtual intrusive_ptr<Aspose::Cells::Systems::Collections::IEnumerator> Aspose::Cells::Properties::IDocumentPropertyCollection::GetEnumerator |
( |
| ) |
|
|
pure virtual |
◆ GetObjectByIndex() [1/2]
◆ GetObjectByIndex() [2/2]
◆ IndexOf()
virtual Aspose::Cells::Systems::Int32 Aspose::Cells::Properties::IDocumentPropertyCollection::IndexOf |
( |
intrusive_ptr< Aspose::Cells::Systems::String > |
name | ) |
|
|
pure virtual |
Gets the index of a property by name.
- Parameters
-
name | The case-insensitive name of the property. |
- Returns
- The zero based index. Negative value if not found.
◆ release_ref()
virtual int Aspose::Cells::Properties::IDocumentPropertyCollection::release_ref |
( |
| ) |
|
|
inlinevirtual |
◆ Remove()
virtual void Aspose::Cells::Properties::IDocumentPropertyCollection::Remove |
( |
intrusive_ptr< Aspose::Cells::Systems::String > |
name | ) |
|
|
pure virtual |
Removes a property with the specified name from the collection.
- Parameters
-
name | The case-insensitive name of the property. |
◆ RemoveAt()
virtual void Aspose::Cells::Properties::IDocumentPropertyCollection::RemoveAt |
( |
Aspose::Cells::Systems::Int32 |
index | ) |
|
|
pure virtual |
Removes a property at the specified index.
- Parameters
-
index | The zero based index. |