• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DocumentPropertyCollection

Provides ordered and name-based access to document properties.

Inheritance
object
DocumentPropertyCollection
BuiltInDocumentProperties
Implements
IEnumerable<DocumentProperty>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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 index.

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

true when the name exists; otherwise, false.

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.

Implements

IEnumerable<T>
IEnumerable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX