Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

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.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

bool Locked { get; set; }

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

richEditControl1.Document.Fields[0].Locked = true;
richEditControl2.Options.Fields.UpdateLockedFields = UpdateLockedFields.Never;

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.

See Also