[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDocumentPropertyCollection.Item

this Property

this[string]

Gets the IDocumentProperty object with the specified name.

Declaration
IDocumentProperty this[string name] { get; }
ReadOnly Default Property Item(name As String) As IDocumentProperty
Parameters
Type Name Description
string name

The name of an element in the collection.

Property Value
Type Description
IDocumentProperty

The IDocumentProperty object with the specified name.

Examples
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
IDocumentProperty property = properties["Department"];

this[int]

Gets the IDocumentProperty object at the specified index in the collection.

Declaration
IDocumentProperty this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IDocumentProperty
Parameters
Type Name Description
int index

The index of the document property in the collection.

Property Value
Type Description
IDocumentProperty

The IDocumentProperty object at the specified index.

Examples
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
IDocumentProperty property = properties[0];
string name = property.Name;