[]
Determines whether a document property with the specified name exists in this collection.
bool Contains(string name)
Function Contains(name As String) As Boolean
| Type | Name | Description |
|---|---|---|
| string | name | The name of the document property to look for. |
| Type | Description |
|---|---|
| bool | true if a document property with the specified name exists in this collection; otherwise, false. |
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
bool contains = properties.Contains("Department");