Class
RtfUnexpectedElementException

Represents errors that occur import of RTF content, caused by an element at an unexpected location.

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Rtf.Exceptions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class RtfUnexpectedElementException : RtfException, ISerializable

Inheritance: objectExceptionRtfExceptionRtfUnexpectedElementException

Implements: ISerializable

Inherited Members Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.TargetSiteException.MessageException.DataException.InnerExceptionException.HelpLinkException.SourceException.HResultException.StackTraceException.SerializeObjectState

Constructors

RtfUnexpectedElementException(string, string)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string expected, string actual)

Parameters

expected

string

The expected element.

actual

string

The actual element.

RtfUnexpectedElementException(string, string, string)

Initializes a new instance of the RtfUnexpectedElementException class.

Declaration

cs-api-definition
public RtfUnexpectedElementException(string expected, string actual, string message)

Parameters

expected

string

The expected element.

actual

string

The actual element.

message

string

The message.

Properties

Actual

Gets the actual element.

Declaration

cs-api-definition
public string Actual { get; }

Property Value

string

The actual.

Expected

Gets the element that has been expected.

Declaration

cs-api-definition
public string Expected { get; }

Property Value

string

The expected.