Skip to main content
A newer version of this page is available. .

ButtonEdit.IsTextEditable Property

Gets or sets whether end-users are allowed to edit the text displayed in the edit box. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

[DefaultValue(true)]
public bool? IsTextEditable { get; set; }

Property Value

Type Default Description
Nullable<Boolean> **true**

true, to allow end-users to edit the text displayed in the edit box; otherwise, false.

Remarks

If the IsTextEditable property is set to false, end-users are not allowed to change, select and copy the text displayed in the edit box, but can click editor buttons (if any). To allow end-users to copy the text, but prevent the text from being edited set the IsTextEditable and BaseEdit.IsReadOnly properties to true. To completely disable the editor (to prevent editing its value and clicking its buttons), set the IsEnabled property to false.

Drop-down editors display their drop-down windows when an end-user clicks the editor’s edit box if the IsTextEditable property is set to true.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsTextEditable property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also