Document Solutions for Word
DS.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / Section Class / CanAdd Method / CanAdd(Type,Exception) Method
The content object type to add.
OUT: the exception that would be thrown if a content object of the specified type was added.

In This Topic
    CanAdd(Type,Exception) Method
    In This Topic
    Checks whether a ContentObject of the specified type can be added to the current section.
    Syntax
    'Declaration
     
    Public Overloads Function CanAdd( _
       ByVal contentObjectType As System.Type, _
       ByRef ex As System.Exception _
    ) As System.Boolean
    public System.bool CanAdd( 
       System.Type contentObjectType,
       out System.Exception ex
    )

    Parameters

    contentObjectType
    The content object type to add.
    ex
    OUT: the exception that would be thrown if a content object of the specified type was added.

    Return Value

    true if a content object of the specified type can be added, false otherwise.
    See Also