New to Telerik UI for WPFStart a free 30-day trial

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:

C#
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

Initializes a new instance of the RtfUnexpectedElementException class.

C#
public RtfUnexpectedElementException(string expected, string actual, string message)
Parameters:expectedstring

The expected element.

actualstring

The actual element.

messagestring

The message.

Initializes a new instance of the RtfUnexpectedElementException class.

C#
public RtfUnexpectedElementException(string expected, string actual)
Parameters:expectedstring

The expected element.

actualstring

The actual element.

Properties

Gets the actual element.

C#
public string Actual { get; }
Property Value:

The actual.

Gets the element that has been expected.

C#
public string Expected { get; }
Property Value:

The expected.