[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDocumentPropertyCollection.Contains

Contains Method

Contains(string)

Determines whether a document property with the specified name exists in this collection.

Declaration
bool Contains(string name)
Function Contains(name As String) As Boolean
Parameters
Type Name Description
string name

The name of the document property to look for.

Returns
Type Description
bool

true if a document property with the specified name exists in this collection; otherwise, false.

Examples
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
bool contains = properties.Contains("Department");