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

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

Definition

Constructors

C#
public DocxDataProvider()

Fields

DocxProperty

DependencyProperty

C#
public static readonly DependencyProperty DocxProperty

SourceProperty

DependencyProperty

C#
public static readonly DependencyProperty SourceProperty

Properties

Gets or sets the current document as HTML

C#
public IList<byte> Docx { get; set; }

Methods

Retrieves the attached data provider for the specified DependencyObject.

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

The DependencyObject from which to retrieve the attached data provider.

Returns:

BinaryDataProviderBase

The attached data provider associated with the specified DependencyObject.

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

C#
public static IList<byte> GetSource(DependencyObject dependencyObject)
Parameters:dependencyObjectDependencyObject

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.

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

C#
public static void SetSource(DependencyObject dependencyObject, IList<byte> sourceValue)
Parameters:dependencyObjectDependencyObject

The dependency object representing the document.

sourceValueIList<byte>

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