Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.