bool TextSelectable { get; set; }

robot_2Generated
code_blocksInput

Description

The TextSelectable property of the TextEdit class determines whether the text within the text editor can be selected by the user. This property is useful for enabling or disabling text selection based on the application's requirements.

Usage

To use the TextSelectable property, simply get or set its value on an instance of the TextEdit class. Setting this property to true allows text selection, while setting it to false prevents it.

Example

// Create a new instance of TextEdit
TextEdit textEdit = new TextEdit();

// Enable text selection
textEdit.TextSelectable = true;

// Check if text selection is enabled
bool canSelectText = textEdit.TextSelectable;

// Disable text selection
textEdit.TextSelectable = false;