Class RtfUnexpectedElementException
Thrown when RTF import encounters an unexpected element type where a specific element was required.
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.FormatProviders.Rtf.Exceptions
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class RtfUnexpectedElementException : RtfException, ISerializable, _Exception
Constructors
RtfUnexpectedElementException()
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
public RtfUnexpectedElementException()
RtfUnexpectedElementException(SerializationInfo, StreamingContext)
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
protected RtfUnexpectedElementException(SerializationInfo info, StreamingContext context)
Parameters
|
System.Runtime.Serialization.SerializationInfo
info
The info. |
|
System.Runtime.Serialization.StreamingContext
context
The context. |
RtfUnexpectedElementException(String)
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
public RtfUnexpectedElementException(string message)
Parameters
|
System.String
message
The message. |
RtfUnexpectedElementException(String, Exception)
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
public RtfUnexpectedElementException(string message, Exception cause)
Parameters
|
System.String
message
The message. |
|
System.Exception
cause
The cause. |
RtfUnexpectedElementException(String, String)
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
public RtfUnexpectedElementException(string expected, string actual)
Parameters
|
System.String
expected
The expected. |
|
System.String
actual
The actual. |
RtfUnexpectedElementException(String, String, String)
Initializes a new instance of the RtfUnexpectedElementException class.
Declaration
public RtfUnexpectedElementException(string expected, string actual, string message)
Parameters
|
System.String
expected
The expected. |
|
System.String
actual
The actual. |
|
System.String
message
The message. |
Properties
Actual
Gets the actual element type or value that was encountered at the parsing location.
Declaration
public string Actual { get; }
Property Value
|
System.String
The actual. |
Expected
Gets the expected element type or value that was required at the parsing location.
Declaration
public string Expected { get; }
Property Value
|
System.String
The expected. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
|
System.Runtime.Serialization.SerializationInfo
info
The System.Runtime.Serialization.SerializationInfo to populate with data. |
|
System.Runtime.Serialization.StreamingContext
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Overrides
Exceptions
|
System.Security.SecurityException
The caller does not have the required permission. |