Class BinaryDataProviderBase
Represents a wrapper of IDocument
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.FormatProviders
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class BinaryDataProviderBase : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Constructors
BinaryDataProviderBase(IDocumentFormatProvider, RadObject, RadProperty)
Initializes a new instance of the Binary
Declaration
public BinaryDataProviderBase(IDocumentFormatProvider formatProvider, RadObject propertyOwner, RadProperty bytesProperty)
Parameters
IDocument The format provider. |
Rad The property owner. |
Rad The bytes property. |
BinaryDataProviderBase(IDocumentFormatProvider, RadProperty)
Initializes a new instance of the Binary
Declaration
public BinaryDataProviderBase(IDocumentFormatProvider formatProvider, RadProperty bytesProperty)
Parameters
IDocument The format provider. |
Rad The bytes property. |
BinaryDataProviderBase(IDocumentFormatProvider, RadRichTextBox, RadProperty)
Declaration
public BinaryDataProviderBase(IDocumentFormatProvider formatProvider, RadRichTextBox propertyOwner, RadProperty stringProperty)
Parameters
IDocument
|
Rad
|
Rad
|
Fields
FormatProviderProperty
The format provider property. It gets or sets the associated format provider.
Declaration
public static readonly RadProperty FormatProviderProperty
Field Value
RichTextBoxProperty
The rich text box property.
Declaration
public static readonly RadProperty RichTextBoxProperty
Field Value
UpdateSourceTriggerProperty
The update source trigger property.
Declaration
public static readonly RadProperty UpdateSourceTriggerProperty
Field Value
Properties
Bytes
Gets or sets the bytes.
Declaration
protected IList<byte> Bytes { get; set; }
Property Value
System. The bytes. |
FormatProvider
Gets or sets the IDocumentFormatProvider thas is used when converting the document
Declaration
public IDocumentFormatProvider FormatProvider { get; set; }
Property Value
RichTextBox
Gets or sets the RadRichTextBox this DataProvider is attached to.
Declaration
public RadRichTextBox RichTextBox { get; set; }
Property Value
UpdateSourceTrigger
Gets or sets the update source trigger.
Declaration
public DataProviderUpdateSourceTrigger UpdateSourceTrigger { get; set; }
Property Value
Data The update source trigger. |
Methods
Bind(RadRichTextBox)
Binds the specified Rad
Declaration
protected virtual void Bind(RadRichTextBox radRichTextBox)
Parameters
Rad The Rad |
BytesPropertyChangedCallback(RadObject, RadPropertyChangedEventArgs)
The callback invoked when the Bytes property changes.
Declaration
protected static void BytesPropertyChangedCallback(RadObject sender, RadPropertyChangedEventArgs e)
Parameters
Rad The sender. |
Rad The Rad |
CreateBytesProperty(String)
Creates a new property to replace the Bytes property.
Declaration
protected static RadProperty CreateBytesProperty(string name)
Parameters
System. The name. |
Returns
OnBytesChanged()
Called after the byte[] associated with this instance changes.
Declaration
protected virtual void OnBytesChanged()
OnImportException(DataProviderImportExceptionEventArgs)
Raises the Import
Declaration
protected virtual void OnImportException(DataProviderImportExceptionEventArgs args)
Parameters
Data The Data |
OnSetupDocument(RadDocument)
Called when the DataProvider creates new document.
Declaration
protected virtual void OnSetupDocument(RadDocument document)
Parameters
Rad The new document. |
SetValueRespectingOneWayBindings(IList<Byte>)
Sets the value respecting one way bindings.
Declaration
protected void SetValueRespectingOneWayBindings(IList<byte> value)
Parameters
System. The value. |
Unbind(RadRichTextBox)
Unbinds the specified Rad
Declaration
protected virtual void Unbind(RadRichTextBox radRichTextBox)
Parameters
Rad The RRad |
UpdateBytes()
Updates the bytes.
Declaration
public virtual void UpdateBytes()
UpdateDocument()
Updates the document.
Declaration
public virtual void UpdateDocument()
Events
BytesChanged
Occurs after the byte[] associated with this instance changes.
Declaration
protected event EventHandler BytesChanged
Event Type
System.
|
ImportException
Occurs when an exception is thrown during import.
Declaration
public event EventHandler<DataProviderImportExceptionEventArgs> ImportException
Event Type
System.
|
SetupDocument
Fires when the DataProvider creates new document.
Declaration
public event EventHandler<SetupDocumentEventArgs> SetupDocument
Event Type
System.
|