[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.CustomPropertyCollection

Class CustomPropertyCollection

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

A collection of custom document properties.

public class CustomPropertyCollection : DocumentPropertyCollection, IEnumerable<DocumentProperty>, IEnumerable
Inheritance
object
CustomPropertyCollection
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()

Methods

Add(string, bool)

Adds a document property of the Boolean data type into the collection.

public DocumentProperty Add(string name, bool value)

Parameters

name string

The name of the document property.

value bool

The value for the document property.

Returns

DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, DateTime)

Adds a document property of the DateTime data type into the collection.

public DocumentProperty Add(string name, DateTime value)

Parameters

name string

The name of the document property.

value System.DateTime

The value for the document property.

Returns

DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, double)

Adds a document property of the Double data type into the collection.

public DocumentProperty Add(string name, double value)

Parameters

name string

The name of the document property.

value double

The value for the document property.

Returns

DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, int)

Adds a document property of the Number data type into the collection.

public DocumentProperty Add(string name, int value)

Parameters

name string

The name of the document property.

value int

The value for the document property.

Returns

DocumentProperty

A DocumentProperty object that represents the new property.

Add(string, string)

Adds a document property of the String data type into the collection.

public DocumentProperty Add(string name, string value)

Parameters

name string

The name of the document property.

value string

The value for the document property.

Returns

DocumentProperty

A DocumentProperty object that represents the new property.

Clear()

Clears all properties from the collection.

public void Clear()

Remove(string)

Removes a document property with the specified name from the collection.

public void Remove(string name)

Parameters

name string

The case-insensitive name of the property.