[]
        
(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
Inheritance
object
System.Exception
InvalidContentControlParentChildException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()

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 System.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 System.Type[]

The allowed child types to insert.