Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 bool IsReadOnly { get; set; }

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

IsReadOnlyProperty

Metadata properties set to true

Inherits

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft