[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDocumentPropertyCollection

Interface IDocumentPropertyCollection

Namespace
GrapeCity.Documents.Excel
Assembly
GcDocs.Excel.dll

A collection of document properties.

public interface IDocumentPropertyCollection

Properties

Count

Gets the number of document property in the collection.

int Count { get; }

Property Value

int

The count.

this[int]

Gets the IDocumentProperty with the specified index.

IDocumentProperty this[int index] { get; }

Parameters

index int

Property Value

IDocumentProperty

The IDocumentProperty.

this[string]

Gets the IDocumentProperty with the specified name.

IDocumentProperty this[string name] { get; }

Parameters

name string

The name.

Property Value

IDocumentProperty

The IDocumentProperty.

Methods

Clear()

Removes all properties from the collection.

void Clear()

Contains(string)

Determines whether the document property with specified name is contained in IDocumentPropertyCollection.

bool Contains(string name)

Parameters

name string

The document property name.

Returns

bool

Whether the document property name is contained.

IndexOf(string)

Gets the index of a property by name.

int IndexOf(string name)

Parameters

name string

The case-insensitive name of the property.

Returns

int

The zero based index. Negative value if not found.

Remove(string)

Removes a property with the specified name from the collection.

void Remove(string name)

Parameters

name string

The case-insensitive name of the property.

RemoveAt(int)

Removes a property at the specified index.

void RemoveAt(int index)

Parameters

index int

The zero based index.