RepositoryItemHyperLinkEdit.ReadOnly Property
Gets or sets the read-only status of the editor.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v22.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the end-user cannot modify the editor’s contents; otherwise false. |
Remarks
The ReadOnly property specifies whether the end-user can modify the editor’s contents.
A hyperlink editor overrides the base RepositoryItem.ReadOnly property in order to control the read-only status when the RepositoryItemHyperLinkEdit.Caption property is assigned a non-empty string. In this case, the end-user is not able to modify the editor’s text and the ReadOnly property always returns true.
If the caption represents an empty string, ReadOnly returns the value you assigned to this property.
You can also disable edit box editing by setting the RepositoryItemButtonEdit.TextEditStyle property to TextEditStyles.DisableTextEditor. However unlike setting ReadOnly to true, TextEditStyles.DisableTextEditor mode prevents the user from selecting the text.