FieldLocaleId Property
Gets or sets the LCID of the field.

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

Property Value

Type: Int32
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