[]
        
(Showing Draft Content)

GrapeCity.Core.IDocumentProperties.Add

Add Method

Add(string, DocumentPropertyType, object)

Creates a new custom document property. You can add a new document property only to the custom IDocumentProperties collection.

Declaration
void Add(string name, DocumentPropertyType type = (DocumentPropertyType)0, object value = null)
Sub Add(name As String, Optional type As DocumentPropertyType = 0, Optional value As Object = Nothing)
Parameters
Type Name Description
string name

The name of the document property.

DocumentPropertyType type

The data type of the document property.

object value

The data value of the document property. The value is converted to match the data type specified by the type argument, and if it can't be converted, false returned.