Class
DocxDataProvider

Represents a data provider for OpenXML DOCX format in Telerik's RadRichTextBox.

Definition

Namespace:Telerik.Windows.Documents.FormatProviders.OpenXml

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class DocxDataProvider : BinaryDataProviderBase

Inheritance: objectBinaryDataProviderBaseDocxDataProvider

Inherited Members BinaryDataProviderBase.UpdateSourceTriggerPropertyBinaryDataProviderBase.RichTextBoxPropertyBinaryDataProviderBase.FormatProviderPropertyBinaryDataProviderBase.CreateBytesProperty(string)BinaryDataProviderBase.BytesPropertyChangedCallback(DependencyObject, DependencyPropertyChangedEventArgs)BinaryDataProviderBase.Bind(RadRichTextBox)BinaryDataProviderBase.Unbind(RadRichTextBox)BinaryDataProviderBase.UpdateDocument()BinaryDataProviderBase.UpdateBytes()BinaryDataProviderBase.SetValueRespectingOneWayBindings(IList<byte>)BinaryDataProviderBase.OnBytesChanged()BinaryDataProviderBase.OnSetupDocument(RadDocument)BinaryDataProviderBase.OnImportException(DataProviderImportExceptionEventArgs)BinaryDataProviderBase.UpdateSourceTriggerBinaryDataProviderBase.BytesBinaryDataProviderBase.RichTextBoxBinaryDataProviderBase.FormatProviderBinaryDataProviderBase.BytesChangedBinaryDataProviderBase.SetupDocumentBinaryDataProviderBase.ImportException

Constructors

DocxDataProvider()

Declaration

cs-api-definition
public DocxDataProvider()

Fields

DocxProperty

Declaration

cs-api-definition
public static readonly DependencyProperty DocxProperty

Field Value

DependencyProperty

SourceProperty

Declaration

cs-api-definition
public static readonly DependencyProperty SourceProperty

Field Value

DependencyProperty

Properties

Docx

Gets or sets the current document as HTML

Declaration

cs-api-definition
public IList<byte> Docx { get; set; }

Property Value

IList<byte>

Methods

GetAttachedDataProvider(DependencyObject)

Retrieves the attached data provider for the specified DependencyObject.

Declaration

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

Parameters

dependencyObject

DependencyObject

The DependencyObject from which to retrieve the attached data provider.

Returns

BinaryDataProviderBase

The attached data provider associated with the specified DependencyObject.

GetSource(DependencyObject)

Retrieves the source associated with the specified DependencyObject in the OpenXml format.

Declaration

cs-api-definition
public static IList<byte> GetSource(DependencyObject dependencyObject)

Parameters

dependencyObject

DependencyObject

The DependencyObject for which to retrieve the source.

Returns

IList<byte>

The source associated with the provided DependencyObject, or null if no source is found.

SetSource(DependencyObject, IList<byte>)

Sets the source of the DocxDataProvider with the specified dependency object and byte array.

Declaration

cs-api-definition
public static void SetSource(DependencyObject dependencyObject, IList<byte> sourceValue)

Parameters

dependencyObject

DependencyObject

The dependency object representing the document.

sourceValue

IList<byte>

A list of byte arrays to set as the source data.