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

◆ read_only() [1/2]

virtual bool xtd::forms::text_box_base::read_only ( ) const
virtualnoexcept

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

Returns
true if the text box is read-only; otherwise, false. The default is false.
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.
Examples
demo.cpp.