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

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

    Parameters

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

    Return Value

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