Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Core Namespace / IDocumentProperties Interface / Add Method
The name of the document property.
The data type of the document property.
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.


In This Topic
    Add Method (IDocumentProperties)
    In This Topic
    Creates a new custom document property. You can add a new document property only to the custom IDocumentProperties collection.
    Syntax
    'Declaration
     
    
    Sub Add( _
       ByVal name As String, _
       Optional ByVal type As DocumentPropertyType, _
       Optional ByVal value As Object _
    ) 
    'Usage
     
    
    Dim instance As IDocumentProperties
    Dim name As String
    Dim type As DocumentPropertyType
    Dim value As Object
     
    instance.Add(name, type, value)

    Parameters

    name
    The name of the document property.
    type
    The data type of the document property.
    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.
    See Also