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

Represents a wrapper of RtfFormatProvider allowing the latter to be used in data binding scenarios.

Definition

Constructors

Initializes a new instance of the RtfDataProvider class.

C#
public RtfDataProvider()

Fields

RtfProperty

DependencyProperty

The RTF property.

C#
public static readonly DependencyProperty RtfProperty

SourceProperty

DependencyProperty

The source property.

C#
public static readonly DependencyProperty SourceProperty

Properties

Gets or sets the current document as RTF.

C#
public string Rtf { get; set; }

Methods

Binds the specified box.

C#
protected override void Bind(RadRichTextBox box)
Parameters:boxRadRichTextBox

The box.

Overrides: DataProviderBase.Bind(RadRichTextBox)

Gets the attached data provider.

C#
public static DataProviderBase GetAttachedDataProvider(DependencyObject dependencyObject)
Parameters:dependencyObjectDependencyObject

The dependency object.

Returns:

DataProviderBase

The provider.

Gets the source.

C#
public static string GetSource(DependencyObject dependencyObject)
Parameters:dependencyObjectDependencyObject

The dependency object.

Returns:

string

Sets the attached data provider.

C#
public static void SetAttachedDataProvider(DependencyObject dependencyObject, DataProviderBase value)
Parameters:dependencyObjectDependencyObject

The dependency object.

valueDataProviderBase

The value.

Sets the source.

C#
public static void SetSource(DependencyObject dependencyObject, string sourceValue)
Parameters:dependencyObjectDependencyObject

The dependency object.

sourceValuestring

The source value.