TextBoxBase.IsReadOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the text editing control is read-only to a user interacting with the control.
public:
property bool IsReadOnly { bool get(); void set(bool value); };
public bool IsReadOnly { get; set; }
member this.IsReadOnly : bool with get, set
Public Property IsReadOnly As Boolean
Property Value
true
if the contents of the text editing control are read-only to a user; otherwise, the contents of the text editing control can be modified by the user. The default value is false
.
Remarks
This value only affects a user who is interacting with the control. The contents of a text editing control can always be modified programmatically.
Dependency Property Information
Identifier field | IsReadOnlyProperty |
Metadata properties set to true |
Inherits |
Applies to
.NET