DocumentPropertyCollection Class

Inheritance Hierarchy

Namespace:  Aspose.Cells.Properties
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.7.0.0 (21.7)
Syntax
public abstract class DocumentPropertyCollection : IEnumerable

The DocumentPropertyCollection type exposes the following members.

Constructors
  NameDescription
Protected methodDocumentPropertyCollection
Initializes a new instance of the DocumentPropertyCollection class
Properties
Methods
  NameDescription
Public methodClear
Removes all properties from the collection.
Public methodContains
Returns true if a property with the specified name exists in the collection.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf
Gets the index of a property by name.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes a property with the specified name from the collection.
Public methodRemoveAt
Removes a property at the specified index.
Public methodToString (Inherited from Object.)
Examples
[C#]

//Instantiate a Workbook object by calling its empty constructor
Workbook workbook = new Workbook("C:\\book1.xls");

//Retrieve a list of all custom document properties of the Excel file
DocumentPropertyCollection customProperties = workbook.Worksheets.CustomDocumentProperties;

//Accessng a custom document property by using the property index
DocumentProperty customProperty1 = customProperties[3];

//Accessng a custom document property by using the property name
DocumentProperty customProperty2 = customProperties["Owner"];

[VB.NET]

'Instantiate a Workbook object by calling its empty constructor
Dim workbook As Workbook = New Workbook("C:\\book1.xls")

'Retrieve a list of all custom document properties of the Excel file
Dim customProperties As DocumentPropertyCollection = workbook.Worksheets.CustomDocumentProperties

'Accessng a custom document property by using the property index
Dim customProperty1 As DocumentProperty = customProperties(3)

'Accessng a custom document property by using the property name
Dim customProperty2 As DocumentProperty = customProperties("Owner")
See Also