Class DocumentPropertyCollection
Provides ordered and name-based access to document properties.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public abstract class DocumentPropertyCollection : IEnumerable<DocumentProperty>, IEnumerable
Properties
Count
Gets the number of document properties.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the property at the specified zero-based ordered index.
Declaration
public DocumentProperty this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based property index. |
Property Value
| Type | Description |
|---|---|
| DocumentProperty | The property at |
this[string]
Gets the property with the specified name.
Declaration
public virtual DocumentProperty this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name. |
Property Value
| Type | Description |
|---|---|
| DocumentProperty | The matching property. |
Methods
Clear()
Removes all properties from the collection.
Declaration
public void Clear()
Contains(string)
Determines whether a property with the specified name exists.
Declaration
public bool Contains(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name to locate. |
Returns
| Type | Description |
|---|---|
| bool |
GetEnumerator()
Returns an enumerator over properties in their stored order.
Declaration
public IEnumerator<DocumentProperty> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<DocumentProperty> | An enumerator over the live collection. |
IndexOf(string)
Returns the ordered index of a named property, or -1 when it is absent.
Declaration
public int IndexOf(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The property name to locate. |
Returns
| Type | Description |
|---|---|
| int | The zero-based property index, or -1. |