RichEditControl Events

Represents a RichEdit control which is a container for the rich-text document providing all the necessary functionality.
Name Description
ActiveRecordChanged Occurs after traversing to the next data record in a mail merge data source.
ActiveRecordChanging Occurs before traversing to the next data record in a mail merge data source.
ActiveViewChanged Occurs when the value of the RichEditControl.ActiveView property is changed.
AfterExport Occurs after the document is successfully exported.
AutoCorrect Fires when text is typed in the control.
AutoSizeChanged This event is not relevant for this class. Inherited from Control.
BackColorChanged Occurs when the value of the BackColor property changes. Inherited from Control.
BackgroundImageChanged Occurs when the value of the BackgroundImage property changes. Inherited from Control.
BackgroundImageLayoutChanged Occurs when the BackgroundImageLayout property changes. Inherited from Control.
BeforeDispose Occurs before the RichEdit control is released from memory
BeforeExport Occurs before the document is saved (exported to a certain format).
BeforeImport Occurs before a document is loaded (imported from an external source).
BeforePagePaint Enables you to specify a custom PagePainter descendant to alter the way the layout elements are drawn.
BindingContextChanged Occurs when the value of the BindingContext property changes. Inherited from Control.
BookmarkFormShowing Occurs before the Bookmark dialog is invoked.
BorderShadingFormShowing Occurs before the Borders and Shading dialog is invoked.
CalculateDocumentVariable Fires for the DOCVARIABLE field and allows you to update its value.
CausesValidationChanged Occurs when the value of the CausesValidation property changes. Inherited from Control.
ChangeUICues Occurs when the focus or keyboard user interface (UI) cues change. Inherited from Control.
Click Occurs when the control is clicked. Inherited from Control.
ClientSizeChanged Occurs when the value of the ClientSize property changes. Inherited from Control.
ClipboardSetDataException Occurs when an exception is thrown while trying to place data onto the Clipboard.
CloseReviewingPane Occurs when closing the reviewing pane displaying document comments.
ColumnsSetupFormShowing Occurs before the Columns dialog is invoked.
CommentInserted Occurs after a new comment is created in the document.
ContentChanged Occurs when the document content was changed.
ContextMenuChanged Occurs when the value of the ContextMenu property changes. Inherited from Control.
ContextMenuStripChanged Occurs when the value of the ContextMenuStrip property changes. Inherited from Control.
ControlAdded Occurs when a new control is added to the Control.ControlCollection. Inherited from Control.
ControlRemoved Occurs when a control is removed from the Control.ControlCollection. Inherited from Control.
CursorChanged Occurs when the value of the Cursor property changes. Inherited from Control.
CustomDrawActiveView Occurs before the active RichEdit view is displayed, and enables you to draw graphics on the document area.
CustomizeMergeFields Fires when the 'Insert Merge Field' command button is clicked, and enables you to customize a drop-down field list.
CustomMarkDraw Fires before a custom mark is painted, and enables you to visualize the custom mark as required.
CustomPropertiesChanged Occurs when one of the DocumentCustomProperties has changed.
DecryptionFailed Occurs if the RichEditControl failed to open an encrypted file.
DeleteTableCellsFormShowing Occurs before the Delete Cells dialog is invoked.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DocBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
DockChanged Occurs when the value of the Dock property changes. Inherited from Control.
DocumentClosing Occurs when a document that contains unsaved changes is about to be closed.
DocumentEncryptionChanged Occurs after one of the DocumentEncryption properties has been changed.
DocumentLoaded Occurs after a document is loaded into the RichEdit control.
DocumentPropertiesChanged Occurs after one of the DocumentProperties has changed.
DocumentPropertiesFormShowing Occurs before the Document Properties dialog is invoked.
DocumentProtectionChanged Fires when the document protection is enforced or dropped.
DocumentProtectionQueryNewPasswordFormShowing Occurs before the Document Protection dialog is invoked.
DocumentProtectionQueryPasswordFormShowing Occurs before the Unprotect Document dialog is invoked.
DoubleClick Occurs when the control is double-clicked. Inherited from Control.
DpiChangedAfterParent Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. Inherited from Control.
DpiChangedBeforeParent Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred. Inherited from Control.
DragDrop Occurs when a drag-and-drop operation is completed. Inherited from Control.
DragEnter Occurs when an object is dragged into the control's bounds. Inherited from Control.
DragLeave Occurs when an object is dragged out of the control's bounds. Inherited from Control.
DragOver Occurs when an object is dragged over the control's bounds. Inherited from Control.
EditStyleFormShowing Fires before the Style Editor dialog is displayed.
EmptyDocumentCreated Occurs when a new document is created in the RichEdit Control.
EnabledChanged Occurs when the Enabled property value has changed. Inherited from Control.
EncryptDocumentFormShowing Occurs before the Encrypt Document Dialog is invoked.
EncryptedFileIntegrityCheckFailed Occurs when the encrypted file does not pass data integrity verification.
EncryptedFilePasswordCheckFailed Occurs when the encryption password is empty or invalid.
EncryptedFilePasswordRequested Occurs when the RichEditDocumentImportOptions.EncryptionPassword property is not set.
Enter Occurs when the control is entered. Inherited from Control.
FinishHeaderFooterEditing Occurs when the end-user finishes editing a header or footer.
FloatingInlineObjectLayoutOptionsFormShowing Raised before the Inline and Floating Object Layout Dialog is shown.
FontChanged Occurs when the Font property value changes. Inherited from Control.
FontFormShowing Occurs before the Font dialog is invoked.
ForeColorChanged Occurs when the ForeColor property value changes. Inherited from Control.
GiveFeedback Occurs during a drag operation. Inherited from Control.
GotFocus Occurs when the control receives focus. Inherited from Control.
HandleCreated Occurs when a handle is created for the control. Inherited from Control.
HandleDestroyed Occurs when the control's handle is in the process of being destroyed. Inherited from Control.
HelpRequested Occurs when the user requests help for a control. Inherited from Control.
HtmlTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
HyperlinkClick Occurs when an end-user clicks the hyperlink to activate it.
HyperlinkFormShowing Occurs before the Edit Hyperlink dialog is invoked.
HyphenationFormShowing Occurs before the Hyphenation dialog is invoked.
ImeModeChanged Occurs when the ImeMode property has changed. Inherited from Control.
InitializeDocument Occurs before a document is loaded. Handle this event to set initial document settings.
InsertMergeFieldFormShowing Occurs before the Insert Merge Field dialog is invoked.
InsertTableCellsFormShowing Occurs before the Insert Cells dialog is invoked.
InsertTableFormShowing Occurs before the Insert Table dialog is invoked.
Invalidated Occurs when a control's display requires redrawing. Inherited from Control.
InvalidFormatException Fires when the supplied data could not be recognized as data in the assumed format for import.
KeyDown Occurs when a key is pressed while the control has focus. Inherited from Control.
KeyPress Occurs when a character. space or backspace key is pressed while the control has focus. Inherited from Control.
KeyUp Occurs when a key is released while the control has focus. Inherited from Control.
Layout Occurs when a control should reposition its child controls. Inherited from Control.
Leave Occurs when the input focus leaves the control. Inherited from Control.
LineNumberingFormShowing Occurs before the Line Numbers dialog is invoked.
LocationChanged Occurs when the Location property value has changed. Inherited from Control.
LostFocus Occurs when the control loses focus. Inherited from Control.
MailMergeFinished Fires when mail merge is completed.
MailMergeRecordFinished Fires after each data record is merged with the document in the mail merge process.
MailMergeRecordStarted Fires before each data record is merged with the document in the mail merge process.
MailMergeStarted Fires before mail merge starts.
MarginChanged Occurs when the control's margin changes. Inherited from Control.
MhtTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
ModifiedChanged Occurs when the value of the RichEditControl.Modified property is changed.
MouseCaptureChanged Occurs when the control loses mouse capture. Inherited from Control.
MouseClick Occurs when the control is clicked by the mouse. Inherited from Control.
MouseDoubleClick Occurs when the control is double clicked by the mouse. Inherited from Control.
MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed. Inherited from Control.
MouseEnter Occurs when the mouse pointer enters the control. Inherited from Control.
MouseHover Occurs when the mouse pointer rests on the control. Inherited from Control.
MouseLeave Occurs when the mouse pointer leaves the control. Inherited from Control.
MouseMove Occurs when the mouse pointer is moved over the control. Inherited from Control.
MouseUp Occurs when the mouse pointer is over the control and a mouse button is released. Inherited from Control.
MouseWheel Occurs when the mouse wheel moves while the control has focus. Inherited from Control.
Move Occurs when the control is moved. Inherited from Control.
NumberingListFormShowing Occurs before the Bullets and Numbering dialog is invoked.
OpenDocumentBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
OpenXmlBytesChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
OvertypeChanged Fires when the RichEditControl.Overtype property value has been changed.
PaddingChanged Occurs when the control's padding changes. Inherited from Control.
PageSetupFormShowing Occurs before the Page Setup dialog is invoked.
Paint Occurs when the control is redrawn. Inherited from Control.
ParagraphFormShowing Occurs before the Paragraph dialog is invoked.
ParentChanged Occurs when the Parent property value changes. Inherited from Control.
PasteSpecialFormShowing Occurs before the Paste Special dialog is invoked.
PopupMenuShowing Occurs before a context (popup) menu is created for the control's document every time a context menu is being invoked.
PreparePopupMenu Obsolete. Occurs before a context (popup) menu is created for the control's document every time a context menu is being invoked.
PreviewKeyDown Occurs before the KeyDown event when a key is pressed while focus is on this control. Inherited from Control.
PropertyChanged Occurs every time any of the RichEditControl class properties has changed its value.
QueryAccessibilityHelp Occurs when AccessibleObject is providing help to accessibility applications. Inherited from Control.
QueryContinueDrag Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. Inherited from Control.
RangeEditingPermissionsFormShowing Occurs before the Editing Permissions dialog is invoked.
ReadOnlyChanged Occurs when the read-only state of the RichEdit control is changed.
RegionChanged Occurs when the value of the Region property changes. Inherited from Control.
Resize Occurs when the control is resized. Inherited from Control.
RightToLeftChanged Occurs when the RightToLeft property value changes. Inherited from Control.
RtfTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
SearchFormShowing Occurs when a search form is invoked before it is displayed.
SelectionChanged Fires in response to changing a selection in the document.
SizeChanged Occurs when the Size property value changes. Inherited from Control.
SpellingErrorLimitExceeded Raises when the number of found misspelled words exceeds the error limit.
SplitTableCellsFormShowing Occurs before the Split Cells dialog is invoked.
StartHeaderFooterEditing Occurs when the end-user starts editing a header or footer.
StyleChanged Occurs when the control style changes. Inherited from Control.
SymbolFormShowing Occurs before the Symbol dialog is invoked.
SystemColorsChanged Occurs when the system colors change. Inherited from Control.
TabIndexChanged Occurs when the TabIndex property value changes. Inherited from Control.
TableOptionsFormShowing Occurs before the Table Options dialog is invoked.
TablePositioningFormShowing Occurs before the Table Positioning dialog is invoked.
TablePropertiesFormShowing Occurs before the Table Properties dialog is invoked.
TableStyleFormShowing Occurs before a Table Style dialog is invoked.
TabsFormShowing Occurs before the Tabs dialog is invoked.
TabStopChanged Occurs when the TabStop property value changes. Inherited from Control.
TextChanged Occurs when the Text property value changes. Inherited from Control.
TrackedMovesConflict Occurs when moved text has been changed since it was moved.
UnhandledException This event is raised when an unhandled exception of the RichEditControl occurs.
UnitChanged Fires after the RichEditControl.Unit property is changed.
UnitChanging Fires before the RichEditControl.Unit property is changed.
UpdateUI Raised when changes occur which may affect the control's UI.
Validated Occurs when the control is finished validating. Inherited from Control.
Validating Occurs when the control is validating. Inherited from Control.
VisibleChanged Occurs when the Visible property value changes. Inherited from Control.
VisiblePagesChanged Fires when RichEditControl starts or finishes displaying a document page.
WordMLTextChanged This member supports the internal infrastructure and is not intended to be used directly from your code.
ZoomChanged Fires when the zoom factor used to display the document is changed.
See Also