Sets the date language to the current form.
Name | Type | Description |
sLangId | string | The date language. The possible value for this parameter is a language identifier as defined in RFC 4646/BCP 47. Example: "en-CA". |
builder.CreateFile("pdf"); var oDocument = Api.GetDocument(); var oDateForm = Api.CreateDateForm({"key": "Nowadays", "tip": "Enter current date", "required": true, "placeholder": "Date", "format": "mm.dd.yyyy", "lang": "en-US"}); var oParagraph = oDocument.GetElement(0); oParagraph.AddElement(oDateForm); oDateForm.SetLanguage("en-CA"); var sLanguage = oDateForm.GetLanguage(); oParagraph = Api.CreateParagraph(); oParagraph.AddText("Date language: " + sLanguage); oDocument.Push(oParagraph); builder.SaveFile("pdf", "SetLanguage.pdf"); builder.CloseFile();