TextBoxBase.IsReadOnly Property


Gets or sets a value that indicates whether the text editing control is read-only to a user interacting with the control.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Property IsReadOnly As Boolean

Property Value

Type: System.Boolean

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.

This value only affects a user who is interacting with the control. The contents of a text editing control can always be modified programmatically.

Identifier field


Metadata properties set to true


.NET Framework
Available since 3.0
Return to top