.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.Core.dll


bool Locked { get; set; }

Property Value

Type Description

True, to lock the field; otherwise, false.


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.


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