FieldLocaleId Property
Gets or sets the LCID of the field.

Namespace: Aspose.Words.Fields
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public int LocaleId { get; set; }

Property Value

Type: Int32
Examples
Get or sets locale for fields
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

Field field = builder.InsertField(@"DATE \* MERGEFORMAT");
field.LocaleId = 2064;

MemoryStream dstStream = new MemoryStream();
doc.Save(dstStream, SaveFormat.Docx);

Field newField = doc.Range.Fields[0];
Assert.AreEqual(2064, newField.LocaleId);
See Also