[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.ContentObject.CanAddContentControl

CanAddContentControl Method

CanAddContentControl(ContentControlType)

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

Declaration
public bool CanAddContentControl(ContentControlType type)
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 object.

Declaration
public bool CanAddContentControl(ContentControlType type, out Exception ex)
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.