The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.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.v19.2.Core.dll

Declaration

bool Locked { get; set; }
Property Locked As Boolean
bool Locked { get; set; }
Property Locked As Boolean
bool Locked { get; set; }
Property Locked As Boolean

Property Value

Type Description
Boolean

True, to lock the field; otherwise, false.

Property Value

Type Description
Boolean

True, to lock the field; otherwise, false.

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.

Examples

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