Class
HtmlDataProvider

Represents a wrapper of HtmlFormatProvider that can be used in data binding scenarios.

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.Html

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class HtmlDataProvider : DataProviderBase

Inheritance: objectDataProviderBaseHtmlDataProvider

Inherited Members DataProviderBase.UpdateSourceTriggerPropertyDataProviderBase.RichTextBoxPropertyDataProviderBase.FormatProviderPropertyDataProviderBase.CreateStringProperty(string)DataProviderBase.StringPropertyChangedCallback(DependencyObject, DependencyPropertyChangedEventArgs)DataProviderBase.Unbind(RadRichTextBox)DataProviderBase.UpdateDocument()DataProviderBase.UpdateString()DataProviderBase.SetValueRespectingOneWayBindings(string)DataProviderBase.UpdateAttachedDataProvider(DependencyObject, Func<RadRichTextBox, DataProviderBase>, Func<DependencyObject, DataProviderBase>, Action<DependencyObject, DataProviderBase>, DependencyProperty, object)DataProviderBase.OnAttachedDataProviderPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)DataProviderBase.OnStringChanged()DataProviderBase.OnSetupDocument(RadDocument)DataProviderBase.OnImportException(DataProviderImportExceptionEventArgs)DataProviderBase.UpdateSourceTriggerDataProviderBase.StringDataProviderBase.RichTextBoxDataProviderBase.FormatProviderDataProviderBase.StringChangedDataProviderBase.SetupDocumentDataProviderBase.ImportException

Constructors

HtmlDataProvider()

Initializes a new instance of the HtmlDataProvider class.

Declaration

cs-api-definition
public HtmlDataProvider()

Fields

HtmlProperty

The HTML property.

Declaration

cs-api-definition
public static readonly DependencyProperty HtmlProperty

Field Value

DependencyProperty

SourceProperty

The source property.

Declaration

cs-api-definition
public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

Properties

Html

Gets or sets the current document as HTML

Declaration

cs-api-definition
public string Html { get; set; }

Property Value

string

Methods

Bind(RadRichTextBox)

Binds the specified RadRichTextBox to the current instance.

Declaration

cs-api-definition
protected override void Bind(RadRichTextBox box)

Parameters

box

RadRichTextBox

The RadRichTextBox.

Overrides DataProviderBase.Bind(RadRichTextBox)

GetAttachedDataProvider(DependencyObject)

Gets the attached data provider.

Declaration

cs-api-definition
public static DataProviderBase GetAttachedDataProvider(DependencyObject dependencyObject)

Parameters

dependencyObject

DependencyObject

The dependency object the data provider should be obtained from.

Returns

DataProviderBase

GetSource(DependencyObject)

Gets the source.

Declaration

cs-api-definition
public static string GetSource(DependencyObject dependencyObject)

Parameters

dependencyObject

DependencyObject

The dependency object the source should be obtained from.

Returns

string

The source.

SetSource(DependencyObject, string)

Sets the source.

Declaration

cs-api-definition
public static void SetSource(DependencyObject dependencyObject, string sourceValue)

Parameters

dependencyObject

DependencyObject

The dependency object the source should be set to.

sourceValue

string

The source value.