[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AcroForms.TextField.SetTimeFormat

SetTimeFormat Method

SetTimeFormat(string)

Imposes the specified time format string on the current TextField.

The syntax of the format string is similar to .NET format strings. Some examples are "HH:MM" or "H:MM tt".

Note that this method initializes the values of Field.Events.FormatValue and Field.Events.KeyPress only, it does not change the field's value or widget appearance streams.

Declaration
public void SetTimeFormat(string format)
Public Sub SetTimeFormat(format As String)
Parameters
Type Name Description
string format

The format string. Cannot be null or empty.