NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichTextBox Members

Public:

Constructor

RichTextBox Constructor Constructs a new RichTextBox.

Properties

AcceptsTab (inherited from TextBoxBase) Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.
AccessibilityObject (inherited from RichControl) The Accessibility Object for this RichControl
AccessibleDefaultActionDescription (inherited from RichControl) The default action description of the control
AccessibleDescription (inherited from RichControl) The accessible description of the control
AccessibleHelpProvider (inherited from RichControl) The help provider for this RichControl
AccessibleName (inherited from RichControl) The accessible name of the control
AccessibleRole (inherited from RichControl) The accessible role of the control
AllowDrop RichTextBox controls have built-in drag and drop support which can't be changed.
AllowTransparency (inherited from RichControl) Determines if the control should be allowed to have the opacity adjusted. This is primarily a performance optimization, in that you can always set the opacity to any value, and that will force AllowTransparency to true. However, setting the opacity to any given value will switch the control into layered mode. By setting the AllowTransparency property to false the control will actually switch out of layered mode, which provides better performance if you don't intend to adjust the opacity.
Anchor (inherited from RichControl) The current value of the anchor property. The anchor property determines which edges of the control are anchored to the container's edges.
AutoSize [To be supplied.]
AutoWordSelection Controls whether whether mouse selection snaps to whole words.
BackColor (inherited from TextBoxBase) Gets or sets the background color of the control.
BackgroundImage [To be supplied.]
BindingManager (inherited from RichControl) [To be supplied.]
Bindings (inherited from RichControl) Retrieves the bindings for this control.
BorderStyle (inherited from TextBoxBase) Gets or sets the border type of the text box control.
Bottom (inherited from Control) The bottom coordinate of this control.
Bounds (inherited from Control) The bounds of this control. This is the window coordinates of the control in parent client coordinates.
BulletIndent Returns the amount of indent used in a RichTextBox control when SelectionBullet is set to true.
CanFocus (inherited from Control) Checks if this control can receive focus. The result is true if the control has a handle and if it and all of its parent controls are both visible and enabled.
CanRedo Whether or not there are actions that can be Redone on the RichTextBox control.
CanSelect (inherited from Control) Checks if this control can be selected. The result is true if the control is contained in a form and if all of its parent controls are both visible and enabled.
CanUndo (inherited from TextBoxBase) Gets a value indicating whether the user can undo the previous operation in a text box control.
Capture (inherited from Control) If this control has captured the mouse then this will return true.
CausesValidation (inherited from Control) Indicates whether entering this control causes validation on the controls requiring validation. This is set to false usually for things like the Help button, etc...
ClientRectangle (inherited from Control) The client rect of the control.
ClientSize (inherited from Control) The size of the clientRect.
CompanyName (inherited from RichControl) Retrieves the company name of this specific component.
ContainsFocus (inherited from Control) Indicates whether the control or one of its children currently has the system focus.
ContextMenu (inherited from RichControl) The contextMenu associated with this control. The contextMenu will be shown when the user right clicks the mouse on the control.
Controls (inherited from Control) Collection of child controls.
Created (inherited from Control) Returns true if the control has been created.
Cursor (inherited from RichControl) Retrieves the cursor that will be displayed when the mouse is over this control.
Delimiter Returns the string containing the delimiter characters of the rich edit control.
DetectURLs Controls whether or not the rich edit control will automatically highlight URLs. By default, this is true. Note that changing this property will not update text that is already present in the RichTextBox control; it only affects text which is entered after the property is changed.
DisplayRectangle (inherited from Control) Returns the client rect of the display area of the control. For the base control class, this is identical to getClientRect. However, inheriting controls may want to change this if their client area differs from their display area.
Disposed (inherited from Control) Indicates that the control has been disposed, and is no longer a valid Windows control even though the object instance is still alive.
Disposing (inherited from Control) Indicates that the control is in the process of being beendisposed, and is no longer a valid Windows control even though the object instance is still alive.
Dock (inherited from RichControl) The dock property. The dock property controls to which edge of the container this control is docked to. For example, when docked to the top of the container, the control will be displayed flush at the top of the container, extending the length of the container.
Enabled (inherited from Control) The current enabled state of this control.
Focused (inherited from Control) Returns true if this control has focus.
FollowPunctuation Returns the string containing the non-leading punctuation characters of the rich edit control.
Font (inherited from FormatControl) FormatControl overrides Font so it can return the current font based on any kind of ambients the associated format object is providing.
ForeColor (inherited from TextBoxBase) Gets or sets the foreground color of the control.
Format [To be supplied.]
Handle (inherited from Control) The HWND handle that this control is bound to. If the handle has not yet been created, this will force handle creation.
HandleCreated (inherited from Control) Whether or not this control has a handle associated with it.
Height (inherited from Control) The height of this control
HideSelection (inherited from TextBoxBase) Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.
IMEColor Returns the IME color settings of the Rich edit control. Valid only for Asian versions of the OS.
IMEMode (inherited from RichControl) Specifies a value that determines the IME (Input Method Editor) status of the object when that object is selected.
IMEOptions Returns the IME option settings of the Rich edit control. Valid only for Asian versions of the OS.
InvokeRequired (inherited from RichControl) Determines if the caller must call invoke when making method calls to this control. Controls in WinForms are bound to a specific thread, and are not thread safe. Therefore, if you are calling a control's method from a different thread, you must use the control's invoke method to marshal the call to the proper thread. This function can be used to determine if you must call invoke, which can be handy if you don't know what thread owns a control. There are five functions on a control that are safe to call from any thread: GetInvokeRequired, Invoke, BeginInvoke, EndInvoke and CreateGraphics. For all other metohd calls, you should use one of the invoke methods.
IsAccessible (inherited from RichControl) Indicates whether or not this control is an accessible control i.e. whether it should be visible to accessibility applications.
LeadPunctuation The string containing the leading punctuation characters of the rich edit control. This is valid only in Asian versions of the operating systems.
Left (inherited from Control) The left coordinate of this control.
Lines (inherited from TextBoxBase) Gets or sets the lines of text in an text box control.
Location (inherited from Control) The location of this control.
MaxLength (inherited from TextBoxBase) Gets or sets the maximum number of characters the user can type into the text box control.
Modified (inherited from TextBoxBase) Gets or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.
Multiline [To be supplied.]
Opacity (inherited from RichControl) Determines the opacity of the control. This can only be set on top level controls. Opacity requires Windows 2000 or later, and is ignored on earlier operating systems.
OutlineMode Indicates whether or not the RichTextBox control should display its contents in "Outline" mode. Usually, this will be false.
Parent (inherited from Control) The parent of this control.
PreferredHeight (inherited from TextBoxBase) Returns the preferred height for a single-line text box.
ProductName (inherited from RichControl) Retrieves the product name of this specific component.
ProductVersion (inherited from RichControl) Retrieves the product version of this specific component.
ReadOnly (inherited from TextBoxBase) Gets or sets a value indicating whether text in the text box is read-only.
RecreatingHandle (inherited from Control) This is true if the control is currently recreating its handle.
RedoActionName Returns the name of the action that will be performed if the user Redo's their last Undone operation. If no operation can be redone, an empty string ("") is returned.
Region (inherited from RichControl) The Region associated with this control. (defines the outline/silhouette/boundary of control)
Right (inherited from Control) The right coordinate of this control.
RightMargin The right margin of a RichTextBox control. A nonzero margin implies WordWrap.
RightToLeft (inherited from RichControl) This is used for international applications where the language is written from RightToLeft. When this property is true, control placement and text will be from right to left.
RTF The text of a RichTextBox control, including all RTF codes.
ScrollBars The current scrollbar settings for a multi-line rich edit control. Possible return values are given by the RichTextBoxScrollBars enumeration.
SelectedRTF The currently selected text of a RichTextBox control, including all RTF codes.
SelectedText The currently selected text of a RichTextBox control; consists of a zero length string if no characters are selected.
SelectionAlignment The alignment of the paragraphs in a RichTextBox control.
SelectionBullet Determines if a paragraph in the RichTextBox control contains the current selection or insertion point has the bullet style.
SelectionCharOffset Determines whether text in the RichTextBox control appears on the baseline (normal), as a superscript above the baseline, or as a subscript below the baseline.
SelectionColor The color of the currently selected text in the RichTextBox control. Returns null if the selection has more than one color.
SelectionFont The font used to display the currently selected text or the characters(s) immediately following the insertion point in the RichTextBox control. Null if the selection has more than one font.
SelectionHangingIndent The distance (in pixels) between the left edge of the first line of text in the selected paragraph(s) (as specified by the SelectionIndent property) and the left edge of subsequent lines of text in the same paragraph(s).
SelectionIndent The distance (in pixels) between the left edge of the RichTextBox control and the left edge of the text that is selected or added at the current insertion point.
SelectionLength (inherited from TextBoxBase) Gets or sets the number of characters selected in the text box.
SelectionMargin Whether or not the left edge of the control will have a "selection margin" which can be used to select entire lines
SelectionProtected true if the current selection prevents any changes to its contents.
SelectionRightIndent The distance (in pixels) between the right edge of the RichTextBox control and the right edge of the text that is selected or added at the current insertion point.
SelectionStart (inherited from TextBoxBase) Gets or sets the starting point of text selected in the text box.
SelectionTabs The absolute tab positions (in pixels) of text in a RichTextBox control.
SelectionType The type of the current selection. The returned value is one of the values enumerated in RichTextBoxSelectionType.
Site (inherited from MarshalByRefComponent) Gets or sets the site of the component.
Size (inherited from Control) The size of this control.
TabIndex (inherited from Control) The tab index of this control. A tab index may consist of any valid integer number greater than or equal to zero. If more than one control on the same parent control has the same tab index, the z-order of the controls will be used to determine the order to pick the controls.
TabStop (inherited from Control) A boolean value indicating whether the user can give the focus to this control using the TAB key.
Text [To be supplied.]
Top (inherited from Control) Top coordinate of this control.
TopLevel (inherited from Control) true if this control is a top level window, meaning that it has no parent.
TopLevelControl (inherited from Control) The top level control that contains this control. This doesn't have to be the same as the value returned from getForm since forms can be parented to other controls.
UndoActionName Returns the name of the action that will be undone if the user Undo's their last operation. If no operation can be undone, it will return an empty string ("").
Value (inherited from FormatControl) The value of the RichControl. This is used with the Format property to format a string to push/pull into the Text property (if the Format property is null, this property sync's up with the Text property.)
Visible (inherited from Control) Controls whether the control is visible.
Width (inherited from Control) The width of this control.
WindowTarget (inherited from Control) The target of Win32 window messages.
WordBreak Enables/disables English word-breaking operation in Japanese and Chinese. Also enables/disables Hangeul word-breaking. This is valid only for Asian versions of the OS.
WordPunctuation Sets the type of punctuation table to be used to determine word-wrap and word-break layout. This has to used in conjunction with the setWordWrap() and setWordBreak() methods. This is valid only for Asian versions of the OS.
WordWrap (inherited from TextBoxBase) Gets or sets a value indicating whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
ZoomFactor The current zoom level for the RichTextBox control. This may be between 1/64 and 64. 1.0 indicates no zoom (i.e. normal viewing). Zoom works best with TrueType fonts; for non-TrueType fonts, ZoomFactor will be treated as the nearest whole number.

Methods

AppendText (inherited from TextBoxBase) Append text to the current text of text box.
BeginInvoke (inherited from RichControl) Overloaded. [To be supplied.]
BringToFront (inherited from Control) Brings this control to the front of the zorder.
CallWndProc (inherited from Control) Dispatch the method to this window's wndProc directly.
CanPaste Returns a boolean indicating whether the RichTextBoxConstants control can paste the given clipboard format.
Clear (inherited from TextBoxBase) Clears all text from the text box control.
ClearUndo (inherited from TextBoxBase) Clears information about the most recent operation from the undo buffer of the text box.
Contains (inherited from Control) Checks if a control is a child of this control.
Copy (inherited from TextBoxBase) Copies the current selection in the text box to the Clipboard.
CreateControl (inherited from Control) Forces the creation of the control. This includes the creation of the handle, and any child controls.
CreateGraphics (inherited from RichControl) Overloaded. [To be supplied.]
CreateWindowGraphics (inherited from RichControl) Creates a Graphics for the entire window of the control rather than just it's client area. The controls foreground color and background color become the default values for the Graphics. The returned Graphics must be disposed through a call to its dispose() method when it is no longer needed. The Graphics Object is only valid for the duration of the current window's message.
Cut (inherited from TextBoxBase) Moves the current selection in the text box to the Clipboard.
Dispose Frees all resources assocaited with this control. This method may not be called at runtime. Any resources used by the control should be setup to be released when the control is GC'ed. Inheriting classes should always call base.dispose.
DoDragDrop (inherited from RichControl) Begins a drag operation. The allowedEffects determine which drag operations can occur. If the drag operation needs to interop with applications in another process, data should either be a base managed class (String, Bitmap, or Metafile) or some Object that implements System.ComponentModel.IPersistable. data can also be any Object that implements System.WinForms.IDataObject.
EndInvoke (inherited from RichControl) Retrieves the return value of the asynchronous operation represented by the IAsyncResult interface passed. If the async operation has not been completed, this function will block until the result is available.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Find Overloaded. [To be supplied.]
FindForm (inherited from RichControl) Retrieves the form that this control is on. The control's parent may not be the same as the form.
Focus (inherited from Control) Attempts to set focus to this control.
GetCharFromPosition Returns the character nearest to the given point.
GetCharIndexFromPosition Returns the index of the character nearest to the given point.
GetChildAtPoint (inherited from Control) Retrieves the child control that is located at the specified client coordinates.
GetContainer (inherited from MarshalByRefComponent) Returns the component's container.
GetContainerControl (inherited from Control) Returns the closest ContainerControl in the control's chain of parent controls and forms.
GetDesignMode (inherited from MarshalByRefComponent) Determines whether the component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject) This method is used return a lifetime service object that is used to control the lifetime policy to the object. For the default Lifetime service this will be an object of type ILease.
GetLineFromCharIndex Returns the number of the line containing a specified character position in a RichTextBox control.
GetNextControl (inherited from Control) Retrieves the next control in the tab order of child controls.
GetPositionFromCharIndex Returns the location of the character at the given index.
GetServiceObject (inherited from MarshalByRefComponent) The implementation of IServiceObjectProvider
GetType (inherited from Object) Gets the Type of the Object.
Hide (inherited from Control) Hides the control by setting the visible property to false;
InitializeLifetimeService (inherited from MarshalByRefObject)  
Invalidate (inherited from Control) Overloaded. [To be supplied.]
Invoke (inherited from RichControl) Overloaded. [To be supplied.]
LoadFile Overloaded. [To be supplied.]
Paste Overloaded. [To be supplied.]
PerformLayout (inherited from Control) Overloaded. [To be supplied.]
PointToClient (inherited from Control) Computes the location of the screen point p in client coords.
PointToScreen (inherited from Control) Computes the location of the client point p in screen coords.
PreProcessMessage (inherited from Control) This method is called by the application's message loop to pre-process input messages before they are dispatched. Possible values for the msg.message field are WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, and WM_SYSCHAR. If this method processes the message it must return true, in which case the message loop will not dispatch the message. For WM_KEYDOWN and WM_SYSKEYDOWN messages, preProcessMessage() first calls processCmdKey() to check for command keys such as accelerators and menu shortcuts. If processCmdKey() doesn't process the message, then isInputKey() is called to check whether the key message represents an input key for the control. Finally, if isInputKey() indicates that the control isn't interested in the key message, then processDialogKey() is called to check for dialog keys such as TAB, arrow keys, and mnemonics. For WM_CHAR messages, preProcessMessage() first calls isInputChar() to check whether the character message represents an input character for the control. If isInputChar() indicates that the control isn't interested in the character message, then processDialogChar() is called to check for dialog characters such as mnemonics. For WM_SYSCHAR messages, preProcessMessage() calls processDialogChar() to check for dialog characters such as mnemonics. When overriding preProcessMessage(), a control should return true to indicate that it has processed the message. For messages that aren't processed by the control, the result of "base.preProcessMessage()" should be returned. Controls will typically override one of the more specialized methods (isInputChar(), isInputKey(), processCmdKey(), processDialogChar(), or processDialogKey()) instead of overriding preProcessMessage().
RectangleToClient (inherited from Control) Computes the location of the screen rectangle r in client coords.
RectangleToScreen (inherited from Control) Computes the location of the client rectangle r in screen coords.
Redo Redoes the last undone editing operation.
Refresh (inherited from Control) Forces the control to invalidate and immediately repaint itself and any children.
ResetBackColor (inherited from RichControl) Resets the back color to be based on the parent's back color.
ResetBindings (inherited from RichControl) [To be supplied.]
ResetCursor (inherited from TextBoxBase) Resets the Cursor property to its default value.
ResetFont (inherited from RichControl) Resets the font to be based on the parent's font.
ResetForeColor (inherited from RichControl) Resets the fore color to be based on the parent's fore color.
ResetRightToLeft (inherited from RichControl) Resets the RightToLeft to be the default.
ResetText (inherited from Control) Resets the text to it's default value.
ResetZoom Clears the Zoom level for the RichTextBox control back to normal (1.0)
ResumeLayout (inherited from Control) Overloaded. [To be supplied.]
SaveFile Overloaded. [To be supplied.]
Scale (inherited from Control) Overloaded. [To be supplied.]
ScrollToCaret Ensures that the caret is visible in the RichTextBox window, by scrolling the RichTextBox control surface if necessary.
Select (inherited from Control) Activates this control.
SelectAll (inherited from TextBoxBase) Selects all text in the text box.
SelectNextControl (inherited from Control) Selects the next control following ctl.
SendMessage (inherited from Control) Overloaded. [To be supplied.]
SendToBack (inherited from Control) sends this control to the back of the z-order
SetBounds (inherited from Control) Overloaded. [To be supplied.]
SetClientSize (inherited from Control) Sets the height and width of the client area of the control.
SetLocation (inherited from Control) Sets the location of this control.
SetNewControls (inherited from Control) Performs the work of setting the array of the child controls contained in this control.
SetSize (inherited from Control) Sets the size of this control.
ShouldPersistBackColor (inherited from RichControl) Returns true if the backColor should be persisted in code gen.
ShouldPersistBindings (inherited from RichControl) [To be supplied.]
ShouldPersistCursor (inherited from TextBoxBase) Indicates whether the Cursor property should be persisted.
ShouldPersistFont (inherited from RichControl) Returns true if the font should be persisted in code gen.
ShouldPersistForeColor (inherited from RichControl) Returns true if the foreColor should be persisted in code gen.
ShouldPersistLocation (inherited from Control) Determines if the Location property needs to be persisted.
ShouldPersistRightToLeft (inherited from RichControl) Returns true if the RightToLeft should be persisted in code gen.
ShouldPersistSize (inherited from Control) Determines if the Size property needs to be persisted.
ShouldPersistText (inherited from FormatControl) Returns true if Text should be persisted in code gen. When we have a format object, we don't want to persist the Text property.
Show (inherited from Control) Makes the control display by setting the visible property to true
SuspendLayout (inherited from Control) Suspends the layout logic for the control.
ToString (inherited from TextBoxBase) Provides some interesting information for the TextBox control in String form.
Undo (inherited from TextBoxBase) Undoes the last edit operation in the text box.
Update (inherited from Control) Forces the control to paint any currently invalid areas.

Events

Click (inherited from TextBoxBase) Occurs when the user clicks the control.
ControlAdded (inherited from Control) [To be supplied.]
ControlRemoved (inherited from Control) [To be supplied.]
CreateHandle (inherited from Control) [To be supplied.]
DestroyHandle (inherited from Control) [To be supplied.]
DoubleClick [To be supplied.]
DragDrop [To be supplied.]
DragEnter [To be supplied.]
DragLeave [To be supplied.]
DragOver [To be supplied.]
Enter (inherited from Control) [To be supplied.]
GiveFeedback [To be supplied.]
GotFocus (inherited from Control) [To be supplied.]
Help (inherited from RichControl) [To be supplied.]
HScroll [To be supplied.]
IMEChange [To be supplied.]
Invalidate (inherited from RichControl) [To be supplied.]
KeyDown (inherited from Control) [To be supplied.]
KeyPress (inherited from Control) [To be supplied.]
KeyUp (inherited from Control) [To be supplied.]
Layout (inherited from Control) [To be supplied.]
Leave (inherited from Control) [To be supplied.]
LinkClick [To be supplied.]
LostFocus (inherited from Control) [To be supplied.]
MouseDown (inherited from Control) [To be supplied.]
MouseEnter (inherited from Control) [To be supplied.]
MouseHover (inherited from Control) [To be supplied.]
MouseLeave (inherited from Control) [To be supplied.]
MouseMove (inherited from Control) [To be supplied.]
MouseUp (inherited from Control) [To be supplied.]
MouseWheel (inherited from Control) [To be supplied.]
Move (inherited from Control) [To be supplied.]
Paint (inherited from RichControl) [To be supplied.]
PropertyChanged (inherited from Control) [To be supplied.]
Protected [To be supplied.]
QueryContinueDrag [To be supplied.]
RequestResize [To be supplied.]
Resize (inherited from Control) [To be supplied.]
SelectionChange [To be supplied.]
TextChanged (inherited from TextBoxBase) Occurs when the text within the control is changed by the user or in code.
Validated (inherited from Control) [To be supplied.]
Validating (inherited from Control) [To be supplied.]
VScroll [To be supplied.]

Protected:

Properties

CreateParams [To be supplied.]
CreateThreadId (inherited from Control) Retrieves the Win32 thread ID of the thread that created the handle for this control. If the control's handle hasn't been created yet, this method will return the current thread's ID.
FontHeight (inherited from RichControl) [To be supplied.]
InternalHandle (inherited from Control) Returns the current value of the handle. This may be zero if the handle has not been created.
ParkingFormHandle (inherited from RichControl) [To be supplied.]
RenderRightToLeft (inherited from RichControl) [To be supplied.]
RichParent (inherited from RichControl) [To be supplied.]
WindowText (inherited from TextBoxBase) [To be supplied.]

Methods

AddEventHandler (inherited from Control) [To be supplied.]
AssignParent (inherited from RichControl) Assigns a new parent control. Sends out the appropriate property change notifications for properties that are affected by the change of parent.
ChildGotFocus (inherited from Control) [To be supplied.]
CreateAccessibilityInstance (inherited from RichControl) Constructs the new instance of the accessibility object for this control. Subclasses should not call base.CreateAccessibilityObject.
CreateControlsInstance (inherited from RichControl) Constructs the new instance of the Controls collection objects. Subclasses should not call base.CreateControlsInstance.
CreateHandle (inherited from TextBoxBase) [To be supplied.]
DefWndProc (inherited from Control) Sends the message to the default window proc.
DestroyHandle (inherited from RichControl) [To be supplied.]
Finalize (inherited from Control) [To be supplied.]
FormatFormatChanged (inherited from FormatControl) If the Format object changes it's formatting, the FormatControl listens to this event to update it's formatting.
GetEventHandler (inherited from RichControl) RichControl overrides the default implementation of this for AX sourcing. ActiveX controls can "freeze" their events, and we implement this by returning null here if events are frozen.
GetFormatMode (inherited from FormatControl) The FOrmatControl uses edit mode if the control is being edited, display mode if it's pure display.
GetFormatText (inherited from FormatControl) This returns the text for the given value based on the current FormatMode.
GetStyle (inherited from Control) Retrieves the current value of the specified bit in the control's style. NOTE: This is control style, not the Win32 style of the hwnd.
InitLayout (inherited from RichControl) Called after the control has been added to another container.
InvokeGotFocus (inherited from Control) [To be supplied.]
InvokeLostFocus (inherited from Control) [To be supplied.]
InvokeOnClick (inherited from Control) [To be supplied.]
InvokePaint (inherited from RichControl) [To be supplied.]
InvokePaintBackground (inherited from RichControl) [To be supplied.]
IsInputChar (inherited from Control) Determines if charCode is an input character that the control wants. This method is called during window message pre-processing to determine whether the given input character should be pre-processed or sent directly to the control. If isInputChar returns true, the given character is sent directly to the control. If isInputChar returns false, the character is pre-processed and only sent to the control if it is not consumed by the pre-processing phase. The pre-processing of a character includes checking whether the character is a mnemonic of another control.
IsInputKey (inherited from TextBoxBase) Overridden to handle TAB key.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
NotifyInvalidate (inherited from RichControl) [To be supplied.]
OnClick (inherited from Control) This method actually raises the Click event. Inheriting classes should override this if they wish to be notified of a Click event. (This is far preferable to actually adding an event handler.) They should not, however, forget to call base.onClick(e); before exiting, to ensure that other recipients do actually get the event.
OnControlAdded (inherited from Control) Called when a child control is added to this control.
OnControlRemoved (inherited from Control) Called when a child control is removed from this control.
OnCreateControl (inherited from Control) Called when the control is first created.
OnCreateHandle [To be supplied.]
OnDestroyHandle (inherited from TextBoxBase) [To be supplied.]
OnDoubleClick (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onDoubleClick to send this event to any registered event listeners.
OnDragDrop (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragDrop to send this event to any registered event listeners.
OnDragEnter (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragEnter to send this event to any registered event listeners.
OnDragLeave (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragLeave to send this event to any registered event listeners.
OnDragOver (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onDragOver to send this event to any registered event listeners.
OnEnter (inherited from FormatControl) The FOrmatControl updates the text based on the EditFormat of the Format object when the control is entered.
OnGiveFeedback (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onGiveFeedback to send this event to any registered event listeners.
OnGotFocus (inherited from RichControl) [To be supplied.]
OnHelp (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onHelp to send this event to any registered event listeners.
OnHScroll Fires an event when the user clicks a RichTextBox control's horizontal scroll bar.
OnIMEChange Fires an event when the user changes the control's IME conversion status.
OnInvalidate (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.OnInvalidate to send this event to any registered event listeners.
OnKeyDown (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onKeyDown to send this event to any registered event listeners.
OnKeyPress (inherited from Control) Inheriting classes should override this method to handle this event. Call base.OnKeyPress to send this event to any registered event listeners.
OnKeyUp (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onKeyUp to send this event to any registered event listeners.
OnLayout (inherited from RichControl) Core layout logic. Inheriting controls should override this function to do any custom layout logic. It is not neccessary to call base.layoutCore, however for normal docking and anchoring functions to work, base.layoutCore must be called.
OnLeave (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onLeave to send this event to any registered event listeners.
OnLinkClick Fires an event when the user clicks on a link in a rich-edit control.
OnLostFocus (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onLostFocus to send this event to any registered event listeners.
OnMouseDown (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseDown to send this event to any registered event listeners.
OnMouseEnter (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseEnter to send this event to any registered event listeners.
OnMouseHover (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseHover to send this event to any registered event listeners.
OnMouseLeave (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseLeave to send this event to any registered event listeners.
OnMouseMove (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseMove to send this event to any registered event listeners.
OnMouseUp (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseUp to send this event to any registered event listeners.
OnMouseWheel (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMouseWheel to send this event to any registered event listeners.
OnMove (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onMove to send this event to any registered event listeners.
OnPaint (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onPaint to send this event to any registered event listeners.
OnPaintBackground (inherited from RichControl) Inheriting classes should override this method to handle the erase background request from windows. It is not necessary to call base.onPaintBackground, however if you do not want the default Windows behavior you must set event.handled to true.
OnParentPropertyChanged (inherited from RichControl) This method is called by the parent control when any property changes on the parent. This can be overriden by inheriting classes, however they must call base.OnParentPropertyChanged.
OnPropertyChanged [To be supplied.]
OnProtected Fires an event when the user is taking an action that would change a protected range of text in the RichTextBox control.
OnQueryContinueDrag (inherited from RichControl) Inheriting classes should override this method to handle this event. Call base.onQueryContinueDrag to send this event to any registered event listeners.
OnRequestResize Fires an event when the user changes the control's contents are either smaller or larger than the control's window size.
OnResize (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onResize to send this event to any registered event listeners.
OnSelectionChange Fires an event when the current selection of text in the RichTextBox control has changed or the insertion point has moved.
OnTextChanged Fires the event indicating that the text property has been changed. Inheriting controls should use this in favour of actually listening to the event, but should not forget to call base.onTextChanged() to ensure that the event is still fired for external listeners.
OnValidated (inherited from Control) Inheriting classes should override this method to handle this event. Call base.onResize to send this event to any registered event listeners.
OnValidating (inherited from FormatControl) The FOrmatControl validates the edited text and pushes the resultant object into the Value property. If the text is invalid, an exception is thrown and the focus returns to this control.
OnVScroll Fires an event when the user clicks a RichTextBox control's vertical scroll bar.
ParentChanged (inherited from Control) Called by the framework after a control's parent changes. This allows (for example) child controls to automatically hook events on their parent, giving better encapsulation.
ProcessCmdKey (inherited from RichControl) [To be supplied.]
ProcessDialogChar (inherited from Control) Processes a dialog character. This method is called during message pre-processing to handle dialog characters, such as control mnemonics. This method is called only if the isInputChar() method indicates that the control isn't interested in the character. processDialogChar() simply sends the character to the parent's processDialogChar() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog characters. When overriding processDialogChar(), a control should return true to indicate that it has processed the character. For characters that aren't processed by the control, the result of "base.processDialogChar()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessDialogKey (inherited from Control) Processes a dialog key. This method is called during message pre-processing to handle dialog characters, such as TAB, RETURN, ESCAPE, and arrow keys. This method is called only if the isInputKey() method indicates that the control isn't interested in the key. processDialogKey() simply sends the character to the parent's processDialogKey() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog keys. When overriding processDialogKey(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processDialogChar()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessKeyEventArgs (inherited from Control) Processes a key message. This method is called when a control receives a keyboard message. The method is responsible for generating the appropriate key events for the message by calling OnKeyPress(), onKeyDown(), or onKeyUp(). The m parameter contains the window message that must be processed. Possible values for the m.msg field are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, WM_SYSKEYUP, and WM_IMECHAR. When overriding processKeyEventArgs(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processKeyEventArgs()" should be returned. Controls will seldom, if ever, need to override this method.
ProcessKeyPreview (inherited from Control) Previews a keyboard message. This method is called by a child control when the child control receives a keyboard message. The child control calls this method before generating any keyboard events for the message. If this method returns true, the child control considers the message consumed and does not generate any keyboard events. The m parameter contains the window message to preview. Possible values for the m.msg field are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, and WM_SYSKEYUP. processKeyPreview() simply sends the character to the parent's processKeyPreview() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog keys. When overriding processKeyPreview(), a control should return true to indicate that it has processed the key. For keys that aren't processed by the control, the result of "base.processKeyEventArgs()" should be returned.
ProcessMnemonic (inherited from Control) Processes a mnemonic character. This method is called to give a control the opportunity to process a mnemonic character. The method should check if the control is in a state to process mnemonics and if the given character represents a mnemonic. If so, the method should perform the action associated with the mnemonic and return true. If not, the method should return false. Implementations of this method often use the isMnemonic() method to check if the given character matches a mnemonic in the control's text, for example:
if (canSelect() && isMnemonic(charCode, getText()) {
    // perform action associated with mnemonic
    }

This default implementation of processMnemonic() simply returns false to indicate that the control has no mnemonic.

RaiseDragEventArgs (inherited from RichControl) Raises the event associated with key with the event data of e and a sender of this control.
RaiseEvent (inherited from Control) [To be supplied.]
RaiseKeyEventArgs (inherited from Control) Raises the event associated with key with the event data of e and a sender of this control.
RaiseMouseEventArgs (inherited from Control) Raises the event associated with key with the event data of e and a sender of this control.
RaisePaintEventArgs (inherited from RichControl) Raises the event associated with key with the event data of e and a sender of this control.
RaisePropertyChangedEvent (inherited from Control) Raises the property changed event. This creates the needed event data and then calls OnPropertyChanged.
RecreateHandle Forces the recreation of the handle for this control. Inheriting controls must call base.recreateHandle.
RemoveEventHandler (inherited from Control) [To be supplied.]
RemoveEventHandlers (inherited from Control) [To be supplied.]
ResetMouseEventArgs (inherited from Control) Resets the mouse leave listeners.
ResumeLayout (inherited from Control) Overloaded. [To be supplied.]
RTLTranslateAlignment (inherited from RichControl) Overloaded. [To be supplied.]
RTLTranslateContent (inherited from RichControl) [To be supplied.]
RTLTranslateHorizontal (inherited from RichControl) [To be supplied.]
RTLTranslateLeftRight (inherited from RichControl) [To be supplied.]
ScaleCore (inherited from Control) Performs the work of scaling the entire control and any child controls.
SendMessage (inherited from Control) Overloaded. [To be supplied.]
SetBoundsCore (inherited from TextBoxBase) Overrides Control.setBoundsCore to enforce autoSize.
SetClientSizeCore (inherited from Control) Performs the work of setting the size of the client area of the control.
SetStyle (inherited from Control) Sets the current value of the specified bit in the control's style. NOTE: This is control style, not the Win32 style of the hwnd.
UpdateBounds (inherited from Control) Overloaded. [To be supplied.]
UpdateStyles (inherited from Control) Forces styles to be reapplied to the handle. This function will call CreateParams to get the styles to apply.
UpdateZOrder (inherited from Control) Updates this control in it's parent's zorder.
WmSysColorChange (inherited from Control) Handles the WM_SYSCOLORCHANGE message
WndProc [To be supplied.]
WndProcException (inherited from RichControl) [To be supplied.]

Event Hookup:

Methods

AddOnClick (inherited from TextBoxBase) Adds an event handler for the System.WinForms.RichControl.Click event.
AddOnControlAdded (inherited from Control) Adds an event handler for the ControlAdded event. This event is raised after a control is added as a child to this control.
AddOnControlRemoved (inherited from Control) Adds an event handler for the ControlRemoved event. This event is raised after a child control is removed from this control.
AddOnCreateHandle (inherited from Control) Adds an event handler for the createHandle event. The createHandle event occurs immediately after the control's handle is created.
AddOnDestroyHandle (inherited from Control) Adds an event handler for the destroyHandle event. The destroyHandle event occurs immediately before the control's handle is destroyed.
AddOnDoubleClick [To be supplied.]
AddOnDragDrop [To be supplied.]
AddOnDragEnter [To be supplied.]
AddOnDragLeave [To be supplied.]
AddOnDragOver [To be supplied.]
AddOnEnter (inherited from Control) Adds an event handler for the enter event. The enter event occurs when focus enters this control. This doesn't imply that this control has focus, but rather that this control or some child control of this control has gotten focus.
AddOnGiveFeedback [To be supplied.]
AddOnGotFocus (inherited from Control) Adds an event handler for the gotFocus event. The gotFocus event occurs when the this control gains focus.
AddOnHelp (inherited from RichControl) Adds an event handler for the help event. The help event occurs when the user requests help for this control. This may be caused by the user pressing F1, or used "Whats This Help".
AddOnHScroll Sets the delegate that will handle the HScroll event.
AddOnIMEChange Sets the delegate that will handle the IMEChange event.
AddOnInvalidate (inherited from RichControl) Adds an event handler for the invalidate event. The invalidate event occurs when the Invalidate method is called on some part of the control's client area. This event may be used to identify when the contents of a window have changed.
AddOnKeyDown (inherited from Control) Adds an event handler for the keyDown event. The keyDown event occurs when the user presses a key down.
AddOnKeyPress (inherited from Control) Adds an event handler for the keyPress event. The keyPress event occurs when the user presses a key.
AddOnKeyUp (inherited from Control) Adds an event handler for the keyUp event. The keyUp event occurs when the user releases a key.
AddOnLayout (inherited from Control) Adds an event handler for the layout event. The layout event occurs when any event occurs that would cause the control to layout child controls. These events include; resize, show/hide child controls, add/remove child controls. This event should be used to perform any custom layout logic.
AddOnLeave (inherited from Control) Adds an event handler for the leave event. The leave event occurs when focus leaves this control. This doesn't imply that this control lost focus, but rather that focus has been moved out of this control and any child controls.
AddOnLinkClick Sets the delegate that will handle the Link Click event.
AddOnLostFocus (inherited from Control) Adds an event handler for the lostFocus event. The lostFocus event occurs when this control looses focus.
AddOnMouseDown (inherited from Control) Adds an event handler for the mouseDown event. The mouseDown event occurs when the user presses the mouseDown over this control.
AddOnMouseEnter (inherited from Control) Adds an event handler for the mouseEnter event. The mouseEnter event occurs when the mouse first moves over this control.
AddOnMouseHover (inherited from Control) Adds an event handler for the mouseHover event. The mouseHover event occurs after the mouse is inside a control for an amount.
AddOnMouseLeave (inherited from Control) Adds an event handler for the mouseLeave event. The mouseLeave event occurs when the mouse first moves out of this control.
AddOnMouseMove (inherited from Control) Adds an event handler for the mouseMove event. The mouseMove event occurs whenever the user moves the mouse over this control.
AddOnMouseUp (inherited from Control) Adds an event handler for the mouseUp event. The mouseUp event occurs when the user releases a mouse button inside the control.
AddOnMouseWheel (inherited from Control) Adds an event handler for the mouseWheel event. The mouseWheel event occurs when the user scrolls the mouse wheel up or down. The delta value in the event data indicates the amount that the mouse wheel has moved. The Microsoft standards indicate that the view should scroll by System.WinForms.SystemInformation.getMouseWheelScrollLines() when the delta value has reach win.WHEEL_DELTA. If a mouseWheel event occurs with a value less that WHEEL_DELTA, the control should either increment a stored value and wait until the total delta is an increment of WHEEL_DELTA, or scroll the view a percentage of MouseWheelScrollLines. NOTE: A press of the mouseWheel will generate a mouseDown event with the middle button pressed.
AddOnMove (inherited from Control) Adds an event handler for the move event. The move event occurs when the controls location changes.
AddOnPaint (inherited from RichControl) Adds an event handler for the paint event. The paint event occurs when the control needs to paint some part of it's client area.
AddOnPropertyChanged (inherited from Control) Adds an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason.
AddOnProtected Sets the delegate that will handle the Protected event.
AddOnQueryContinueDrag [To be supplied.]
AddOnRequestResize Sets the delegate that will handle the RequestResize event.
AddOnResize (inherited from Control) Adds an event handler for the resize event. The resize event occurs when the bounds of the control change. This event may be fired from the constructor of base controls.
AddOnSelectionChange Sets the delegate that will handle the SelectionChange event.
AddOnTextChanged (inherited from TextBoxBase) Adds an event handler for the System.WinForms.TextBoxBase.TextChanged event.
AddOnValidated (inherited from Control) Adds an event handler for the validated event. The validated event occurs when a control was successfully validated.
AddOnValidating (inherited from Control) Adds an event handler for the validating event. The validating event occurs when the control loses focus and a control that causes validation gains focus. This is where users can write code to validate the current values of the control.
AddOnVScroll Sets the delegate that will handle the VScroll event.
RemoveOnClick (inherited from Control) Removes the given handler for the "OnClick" event. If there are duplicate entries, ALL are removed.
RemoveOnControlAdded (inherited from Control) Removes the given handler for the "ControlAdded" event. If there are duplicate entries, ALL are removed.
RemoveOnControlRemoved (inherited from Control) Removes the given handler for the "ControlRemoved" event. If there are duplicate entries, ALL are removed.
RemoveOnCreateHandle (inherited from Control) Removes the given handler for the "createHandle" event. If there are duplicate entries, ALL are removed.
RemoveOnDestroyHandle (inherited from Control) Removes the given handler for the "destroyHandle" event. If there are duplicate entries, ALL are removed.
RemoveOnDoubleClick (inherited from Control) Removes the given handler for the "OnDoubleClick" event. If there are duplicate entries, ALL are removed.
RemoveOnDragDrop (inherited from RichControl) Removes the given handler for the "dragDrop" event. If there are duplicate entries, ALL are removed.
RemoveOnDragEnter (inherited from RichControl) Removes the given handler for the "OnDragEnter" event. If there are duplicate entries, ALL are removed.
RemoveOnDragLeave (inherited from RichControl) Removes the given handler for the "OnDragLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnDragOver (inherited from RichControl) f final Removes the given handler for the "OnDragOver" event. If there are duplicate entries, ALL are removed.
RemoveOnEnter (inherited from Control) Removes the given handler for the "OnEnter" event. If there are dfinal uplicate entries, ALL are removed.
RemoveOnGiveFeedback (inherited from RichControl) Removes the given handler for the "OnGiveFeedback" event. If there are duplicate entries, ALL are removed.
RemoveOnGotFocus (inherited from Control) Removes the given handler for the "OnGotFocus" event. If there are duplicate entries, ALL are removed.
RemoveOnHelp (inherited from RichControl) Removes the given handler for the "OnHelp" event. If there are duplicate entries, ALL are removed.
RemoveOnHScroll Removes the delegate that will handle the HScroll event.
RemoveOnIMEChange Removes the delegate that will handle the IMEChange event.
RemoveOnInvalidate (inherited from RichControl) Removes the given handler for the "OnInvalidate" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyDown (inherited from Control) Removes the given handler for the "OnKeyDown" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyPress (inherited from Control) Removes the given handler for the "OnKeyPress" event. If there are duplicate entries, ALL are removed.
RemoveOnKeyUp (inherited from Control) Removes the given handler for the "OnKeyUp" event. If there are duplicate entries, ALL are removed.
RemoveOnLayout (inherited from Control) Removes the given handler for the layout event. If there are duplicate entries, ALL are removed.
RemoveOnLeave (inherited from Control) Removes the given handler for the "OnLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnLinkClick Removes the delegate that will handle the OnLinkClick event.
RemoveOnLostFocus (inherited from Control) Removes the given handler for the "OnLostFocus" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseDown (inherited from Control) Removes the given handler for the "OnMouseDown" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseEnter (inherited from Control) Removes the given handler for the "OnMouseEnter" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseHover (inherited from Control) Removes the given handler for the "OnMouseHover" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseLeave (inherited from Control) Removes the given handler for the "OnMouseLeave" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseMove (inherited from Control) Removes the given handler for the "OnMouseMove" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseUp (inherited from Control) Removes the given handler for the "OnMouseUp" event. If there are duplicate entries, ALL are removed.
RemoveOnMouseWheel (inherited from Control) Removes the given handler for the "OnMouseWheel" event. If there are duplicate entries, ALL are removed.
RemoveOnMove (inherited from Control) Removes the given handler for the "OnMove" event. If there are duplicate entries, ALL are removed.
RemoveOnPaint (inherited from RichControl) Removes the given handler for the "OnPaint" event. If there are duplicate entries, ALL are removed.
RemoveOnPropertyChanged (inherited from Control) Removes an event handler for the property changed event. This event occurs when any property on the control has been changed for any reason.
RemoveOnProtected Removes the delegate that will handle the Protected event.
RemoveOnQueryContinueDrag (inherited from RichControl) Removes the given handler for the "OnQueryContinueDrag" event. If there are duplicate entries, ALL are removed.
RemoveOnRequestResize Removes the delegate that will handle the RequestResize event.
RemoveOnResize (inherited from Control) Removes the given handler for the "OnResize" event. If there are duplicate entries, ALL are removed.
RemoveOnSelectionChange Removes the delegate that will handle the SelectionChange event.
RemoveOnTextChanged (inherited from TextBoxBase) Removes the given handler for the "textChanged" event. If there are duplicate entries, ALL are removed.
RemoveOnValidated (inherited from Control) Removes an event handler for the validated event. The validated event occurs when a control was successfully validated.
RemoveOnValidating (inherited from Control) Removes an event handler for the validating event. The validating event occurs when the control loses focus and a control that causes validation gains focus. This is where users can write code to validate the current values of the control.
RemoveOnVScroll Removes the delegate that will handle the VScroll event.

See Also

RichTextBox Class | System.WinForms Namespace