[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Body.CanAddContentControl

CanAddContentControl Method

CanAddContentControl(ContentControlType)

Checks whether a ContentControl of the specified type can be added to the current body.

Declaration
public bool CanAddContentControl(ContentControlType type)
Public Function CanAddContentControl(type As ContentControlType) As Boolean
Parameters
Type Name Description
ContentControlType type

The type of the content control to add.

Returns
Type Description
bool

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

CanAddContentControl(ContentControlType, out Exception)

Checks whether a ContentControl of the specified type can be added to the current body.

Declaration
public bool CanAddContentControl(ContentControlType type, out Exception ex)
Public Function CanAddContentControl(type As ContentControlType, ByRef ex As Exception) As Boolean
Parameters
Type Name Description
ContentControlType type

The type of the content control to add.

Exception ex

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

Returns
Type Description
bool

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