xtd 0.2.0
Loading...
Searching...
No Matches

◆ read_only() [2/2]

virtual text_box_base & xtd::forms::text_box_base::read_only ( bool  value)
virtual

Sets a value indicating whether text in the text box is read-only.

Parameters
valuetrue if the text box is read-only; otherwise, false. The default is false.
Returns
Current text_box_base instance.
Remarks
When this property is set to true, the contents of the control cannot be changed by the user at runtime. With this property set to true, you can still set the value of the Text property in code. You can use this feature instead of disabling the control with the Enabled property to allow the contents to be copied and ToolTips to be shown.