CustomDocumentPropertyCollection Class

A collection of custom document properties.
Inheritance Hierarchy
SystemObject
  Aspose.Cells.PropertiesDocumentPropertyCollection
    Aspose.Cells.PropertiesCustomDocumentPropertyCollection

Namespace:  Aspose.Cells.Properties
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.7.0.0 (20.7)
Syntax
public class CustomDocumentPropertyCollection : DocumentPropertyCollection

The CustomDocumentPropertyCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodAdd(String, Boolean)
Creates a new custom document property of the PropertyType.Boolean data type.
Public methodAdd(String, DateTime)
Creates a new custom document property of the PropertyType.DateTime data type.
Public methodAdd(String, Double)
Creates a new custom document property of the PropertyType.Float data type.
Public methodAdd(String, Int32)
Creates a new custom document property of the PropertyType.Number data type.
Public methodAdd(String, String)
Creates a new custom document property of the PropertyType.String data type.
Public methodAddLinkToContent
Creates a new custom document property which links to content.
Public methodClear
Removes all properties from the collection.
(Inherited from DocumentPropertyCollection.)
Public methodContains
Returns true if a property with the specified name exists in the collection.
(Inherited from DocumentPropertyCollection.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
(Inherited from DocumentPropertyCollection.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf
Gets the index of a property by name.
(Inherited from DocumentPropertyCollection.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes a property with the specified name from the collection.
(Inherited from DocumentPropertyCollection.)
Public methodRemoveAt
Removes a property at the specified index.
(Inherited from DocumentPropertyCollection.)
Public methodToString (Inherited from Object.)
Public methodUpdateLinkedPropertyValue
Update custom document property value which links to content.
Public methodUpdateLinkedRange
Update custom document property value to linked range.
Remarks

Each DocumentProperty object represents a custom property of a container document.

Examples
[C#]

//Instantiate a Workbook object
Workbook workbook = new Workbook("C:\\book1.xls");

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

[VB.NET]

'Instantiate a Workbook object
Dim workbook As New Workbook("C:\book1.xls")

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