FieldOptionsFieldUpdateCultureSource Property

Specifies what culture to use to format the field result.

Namespace:  Aspose.Words.Fields
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public FieldUpdateCultureSource FieldUpdateCultureSource { get; set; }

Property Value

Type: FieldUpdateCultureSource
Remarks

By default, the culture of the current thread is used.

The setting affects only date/time fields with \\@ format switch.

Examples
Shows how to specify where the culture used for date formatting during field update and mail merge is chosen from.
// Set the culture used during field update to the culture used by the field
doc.FieldOptions.FieldUpdateCultureSource = FieldUpdateCultureSource.FieldCode;
doc.MailMerge.Execute(new[] { "Date2" }, new object[] { new DateTime(2011, 1, 01) });
See Also