[]
Gets the IDocumentProperty object with the specified name.
IDocumentProperty this[string name] { get; }
ReadOnly Default Property Item(name As String) As IDocumentProperty
| Type | Name | Description |
|---|---|---|
| string | name | The name of an element in the collection. |
| Type | Description |
|---|---|
| IDocumentProperty | The IDocumentProperty object with the specified name. |
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
IDocumentProperty property = properties["Department"];
Gets the IDocumentProperty object at the specified index in the collection.
IDocumentProperty this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As IDocumentProperty
| Type | Name | Description |
|---|---|---|
| int | index | The index of the document property in the collection. |
| Type | Description |
|---|---|
| IDocumentProperty | The IDocumentProperty object at the specified index. |
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
IDocumentProperty property = properties[0];
string name = property.Name;