Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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]
<Flags>
<Serializable>
Public Enum RichTextBoxSelectionTypes
[C#]
[Flags]
[Serializable]
public enum RichTextBoxSelectionTypes
[C++]
[Flags]
[Serializable]
__value public enum RichTextBoxSelectionTypes
[JScript]
public
   Flags
 Serializable
enum RichTextBoxSelectionTypes

Remarks

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.

Members

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

Requirements

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

Show:
© 2015 Microsoft