[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.DocumentPropertyCollection

Class DocumentPropertyCollection

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll
public class DocumentPropertyCollection : IEnumerable<DocumentProperty>, IEnumerable
Inheritance
object
DocumentPropertyCollection
Implements
System.Collections.Generic.IEnumerable<T><DocumentProperty>
System.Collections.IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Count

Returns the number of properties in the collection.

public int Count { get; }

Property Value

int

this[string]

Gets a document property by the case-insensitive name.

public DocumentProperty this[string name] { get; }

Parameters

name string

The case-insensitive name of the property.

Property Value

DocumentProperty

A DocumentProperty with the specified name.

Methods

Contains(string)

Gets whether a property with specified name exists in the document.

public bool Contains(string name)

Parameters

name string

A property name to check.

Returns

bool

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

TryGetValue(string, out DocumentProperty)

Gets a document property by the case-insensitive name.

public bool TryGetValue(string name, out DocumentProperty property)

Parameters

name string

The case-insensitive name of the property.

property DocumentProperty

When this method returns, contains the property with the specified name, if the property with specified name is found; otherwise, null.

Returns

bool

true if the collection contains a property with the specified name; otherwise, false.