[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.InvalidContentControlParentChildException

Class InvalidContentControlParentChildException

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

The exception that is thrown when trying to insert invalid content type into the specific parent content inside the content control.

public class InvalidContentControlParentChildException : InvalidContentControlChildException, ISerializable, _Exception
Inheritance
InvalidContentControlParentChildException
Implements
Inherited Members

Constructors

InvalidContentControlParentChildException(ContentControl, ContentObject, Type)

Initializes a new instance of the InvalidContentControlParentChildException class.

public InvalidContentControlParentChildException(ContentControl contentControl, ContentObject parent, Type allowedChildType)

Parameters

contentControl ContentControl

The content control inside wich trying to insert.

parent ContentObject

The parent content object inside the content control where to insert the child content object.

allowedChildType Type

The allowed child type to insert.

InvalidContentControlParentChildException(ContentControl, ContentObject, Type[])

Initializes a new instance of the InvalidContentControlParentChildException class.

public InvalidContentControlParentChildException(ContentControl contentControl, ContentObject parent, Type[] allowedChildTypes)

Parameters

contentControl ContentControl

The content control inside wich trying to insert.

parent ContentObject

The parent content object inside the content control where to insert the child content object.

allowedChildTypes Type[]

The allowed child types to insert.