Top Method Summary
Options Name Purpose
AfterAssignRecordHandler (Object, AfterAssignRecordEventArgs) Event handler for the AfterAssignRecord event of the viewer's data source
AttachDataSource () Subscribes to the AfterAssignRecord event of the viewer's data source
CurrentChangedHandler (Object, EventArgs) Event handler for the CurrentChanged event of the viewer
HANDLE GetBufferField () Returns the handle of the buffer field the editor represents
LoadContent () Loads the content of the field of the current record into the editor
RecordStateChangedHandler (Object, EventArgs) Event handler for the AfterAddRecord, AfterCopyRecord, AfterCancelUpdate and AfterSaveChanges events of the viewer
SmartDataSourceChangedHandler (Object, EventArgs) Event handler for the SmartDataSourceChanged event of the viewer
ValueChangedHandler (Object, EventArgs) Event handler for the ValueChanged event of the editor

Top Constructor Summary
Options Name Purpose
RichTextEditorViewerBindingHandler (SmartViewerControl, SmartRichTextEditorControl, character) Constructor for the RichTextEditorViewerBindingHandler class


Method Detail
Top

AfterAssignRecordHandler (Object, AfterAssignRecordEventArgs)

Purpose: Event handler for the AfterAssignRecord event of the viewer's
data source
Notes: Writes the content of the editor into the field of the record
that is about to be submitted. Nothing is written while the
user has not changed the content, so that a record is not
modified by the RTF export of an unchanged document

Parameters:
sender System.Object
The reference to the object that raised the event
e Consultingwerk.SmartComponents.Implementation.AfterAssignRecordEventArgs
The AfterAssignRecordEventArgs with the data for this event
Top

AttachDataSource ()

Purpose: Subscribes to the AfterAssignRecord event of the viewer's
data source
Notes: Unsubscribes from the previous data source first

Top

CurrentChangedHandler (Object, EventArgs)

Purpose: Event handler for the CurrentChanged event of the viewer
Notes: Loads the content of the now current record. While the user
is modifying the content, the editor is not reloaded

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

HANDLE GetBufferField ()

Purpose: Returns the handle of the buffer field the editor represents
Notes: An unqualified field name refers to the EntityTable of the
data source, a qualified field name to a buffer of its query

Returns HANDLE
The handle of the buffer field, the unknown value when no record is available
Top

LoadContent ()

Purpose: Loads the content of the field of the current record into
the editor
Notes: Clears the editor when no record is available

Top

RecordStateChangedHandler (Object, EventArgs)

Purpose: Event handler for the AfterAddRecord, AfterCopyRecord,
AfterCancelUpdate and AfterSaveChanges events of the viewer
Notes: Loads the content of the record the viewer now shows and
discards the modified state

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

SmartDataSourceChangedHandler (Object, EventArgs)

Purpose: Event handler for the SmartDataSourceChanged event of the viewer
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

ValueChangedHandler (Object, EventArgs)

Purpose: Event handler for the ValueChanged event of the editor
Notes: The user changed the content, so the viewer is put into the
modifying state - the way a custom event handler changing a
viewer value does - which enables Save and starts the update
on the data source

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event


Constructor Detail
Top

RichTextEditorViewerBindingHandler (SmartViewerControl, SmartRichTextEditorControl, character)

Purpose: Constructor for the RichTextEditorViewerBindingHandler class
Notes: The data source of the viewer is typically assigned after the
viewer has been rendered, so the handler follows the
SmartDataSourceChanged event of the viewer

Parameters:
poViewer Consultingwerk.SmartComponents.Base.SmartViewerControl
The reference to the SmartViewerControl hosting the editor
poControl Consultingwerk.Windows.Controls.SmartRichTextEditorControl
The reference to the SmartRichTextEditorControl
pcFieldName CHARACTER
The name of the field (instance name), optionally qualified with the table name


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       19.09.2026 10:22:47