[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AcroForms.TextField.SetPercentFormat

SetPercentFormat Method

SetPercentFormat(int, NumberSeparatorStyle)

Imposes the specified percentage formatting options on the current TextField.

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 SetPercentFormat(int decimalPlaces, Field.NumberSeparatorStyle separatorStyle)
Public Sub SetPercentFormat(decimalPlaces As Integer, separatorStyle As Field.NumberSeparatorStyle)
Parameters
Type Name Description
int decimalPlaces

The number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.

Field.NumberSeparatorStyle separatorStyle

The placement of commas and periods, see Field.NumberSeparatorStyle.