Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RichTextBoxSelectionTypes Enumeration
Collapse the table of content
Expand the table of content

RichTextBoxSelectionTypes Enumeration

Specifies the type of selection in a RichTextBox control.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
Public Enum RichTextBoxSelectionTypes
public enum RichTextBoxSelectionTypes
__value public enum RichTextBoxSelectionTypes
enum RichTextBoxSelectionTypes


Use the members of this enumeration to determine the value of the SelectionType property of the RichTextBox class. The RichTextBox.SelectionType property can return any combination of values from this enumeration.


Member name Description Value
Empty No text is selected in the current selection. 0
MultiChar More than one character is selected. 4
MultiObject More than one Object Linking and Embedding (OLE) object is selected. 8
Object At least one Object Linking and Embedding (OLE) object is selected. 2
Text The current selection contains only text. 1


Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

System.Windows.Forms Namespace | RichTextBox | SelectionType

© 2015 Microsoft