Gets or sets whether the field is locked (should not recalculate its result).
Syntax
public bool IsLocked { get; set; }
Public Property IsLocked As Boolean
Get
Set
public:
property bool IsLocked {
bool get ();
void set (bool value);
}
member IsLocked : bool with get, set
Property Value
Type:
Boolean
Examples
Shows how to work with a FieldStart node.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
FieldDate field = (FieldDate)builder.InsertField(FieldType.FieldDate, true);
field.Format.DateTimeFormat = "dddd, MMMM dd, yyyy";
field.Update();
FieldChar fieldStart = field.Start;
Assert.AreEqual(FieldType.FieldDate, fieldStart.FieldType);
Assert.AreEqual(false, fieldStart.IsDirty);
Assert.AreEqual(false, fieldStart.IsLocked);
field = (FieldDate)fieldStart.GetField();
Assert.AreEqual(false, field.IsLocked);
Assert.AreEqual(" DATE \\@ \"dddd, MMMM dd, yyyy\"", field.GetFieldCode());
field.Update();
See Also