TextBoxBase::IsReadOnly Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 bool IsReadOnly {
	bool get();
	void set(bool value);
}

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: