System.Windows.Forms.RichTextBox: Property Members

The properties of System.Windows.Forms.RichTextBox are listed below. For a list of all members, see the RichTextBox Members list.

See Also: Inherited members from System.Windows.Forms.TextBoxBase

Public Properties

override
AllowDropbool.

Gets or sets a value indicating whether the control will enable drag-and-drop operations.

override
AutoSizebool.

This property is not relevant to this class.

AutoWordSelectionbool.

Gets or sets a value indicating whether automatic word selection is enabled.

override
BackgroundImageSystem.Drawing.Image.

This property is not relevant to this class.

override
BackgroundImageLayoutImageLayout.

This property is not relevant to this class.

BulletIndentint.

Gets or sets the indentation used in the System.Windows.Forms.RichTextBox control when the bullet style is applied to the text.

[read-only]
CanRedobool.

Gets a value indicating whether there are actions that have occurred within the System.Windows.Forms.RichTextBox that can be reapplied.

DetectUrlsbool.

Gets or sets a value indicating whether or not the System.Windows.Forms.RichTextBox will automatically format a Uniform Resource Locator (URL) when it is typed into the control.

EnableAutoDragDropbool.

Gets or sets a value that enables drag-and-drop operations on text, pictures, and other data.

override
FontSystem.Drawing.Font.

Gets or sets the font used when displaying text in the control.

override
ForeColorSystem.Drawing.Color.

Gets or sets the font color used when displaying text in the control.

LanguageOptionRichTextBoxLanguageOptions.

Gets or sets a value that indicates System.Windows.Forms.RichTextBox settings for Input Method Editor (IME) and Asian language support.

override
MaxLengthint.

Gets or sets the maximum number of characters the user can type or paste into the rich text box control.

override
Multilinebool.

Gets or sets a value indicating whether this is a multiline System.Windows.Forms.RichTextBox control.

[read-only]
RedoActionNamestring.

Gets the name of the action that can be reapplied to the control when the RichTextBox.Redo method is called.

RichTextShortcutsEnabledbool.

This property is not relevant for this class.

RightMarginint.

Gets or sets the size of a single line of text within the System.Windows.Forms.RichTextBox control.

Rtfstring.

Gets or sets the text of the System.Windows.Forms.RichTextBox control, including all rich text format (RTF) codes.

ScrollBarsRichTextBoxScrollBars.

Gets or sets the type of scroll bars to display in the System.Windows.Forms.RichTextBox control.

SelectedRtfstring.

Gets or sets the currently selected rich text format (RTF) formatted text in the control.

override
SelectedTextstring.

Gets or sets the selected text within the System.Windows.Forms.RichTextBox.

SelectionAlignmentHorizontalAlignment.

Gets or sets the alignment to apply to the current selection or insertion point.

SelectionBackColorSystem.Drawing.Color.

Gets or sets the color of text when the text is selected in a System.Windows.Forms.RichTextBox control.

SelectionBulletbool.

Gets or sets a value indicating whether the bullet style is applied to the current selection or insertion point.

SelectionCharOffsetint.

Gets or sets whether text in the control appears on the baseline, as a superscript, or as a subscript below the baseline.

SelectionColorSystem.Drawing.Color.

Gets or sets the text color of the current text selection or insertion point.

SelectionFontSystem.Drawing.Font.

Gets or sets the font of the current text selection or insertion point.

SelectionHangingIndentint.

Gets or sets the distance between the left edge of the first line of text in the selected paragraph and the left edge of subsequent lines in the same paragraph.

SelectionIndentint.

Gets or sets the length, in pixels, of the indentation of the line where the selection starts.

override
SelectionLengthint.

Gets or sets the number of characters selected in control.

SelectionProtectedbool.

Gets or sets a value indicating whether the current text selection is protected.

SelectionRightIndentint.

The distance (in pixels) between the right edge of the System.Windows.Forms.RichTextBox control and the right edge of the text that is selected or added at the current insertion point.

SelectionTabsint[].

Gets or sets the absolute tab stop positions in a System.Windows.Forms.RichTextBox control.

[read-only]
SelectionTypeRichTextBoxSelectionTypes.

Gets the selection type within the control.

ShowSelectionMarginbool.

Gets or sets a value indicating whether a selection margin is displayed in the System.Windows.Forms.RichTextBox.

override
Textstring.

Gets or sets the current text in the rich text box.

[read-only]
override
TextLengthint. Documentation for this section has not yet been entered.
[read-only]
UndoActionNamestring.

Gets the name of the action that can be undone in the control when the TextBoxBase.Undo method is called.

ZoomFactorfloat.

Gets or sets the current zoom level of the System.Windows.Forms.RichTextBox.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.