IsReadOnly Property

RichTextBox.IsReadOnly Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that determines whether the user can change the text in the RichTextBox.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool IsReadOnly { get; set; }
<RichTextBox IsReadOnly="bool"/>

Property Value

Type: System.Boolean
true if the RichTextBox is read-only; otherwise, false. The default on Windows Phone is true.

 In Windows Phone 8, RichTextBox is read-only. Do not use this property if you are using RichTextBox in a Windows Phone application.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2017 Microsoft