Field.Locked Property
Gets or sets whether the field is locked, so that it cannot be updated automatically or by executing UI commands.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v20.1.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | True, to lock the field; otherwise, false. |
Remarks
Locked fields cannot be updated by calling the Field.Update or FieldCollection.Update methods. However, you can use the FieldOptions.UpdateLockedFields property to allow the control to update all locked fields or only DOCVARIABLE fields.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-use-document-variable-docvariable-fields-e3099
richEditControl1.Document.Fields[0].Locked = true;
richEditControl2.Options.Fields.UpdateLockedFields = UpdateLockedFields.Never;
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Locked 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.