[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.AcroForms.TextField.SetPercentValue

SetPercentValue Method

SetPercentValue(double, int, NumberSeparatorStyle)

Imposes the specified percentage formatting options on the current TextField, and assigns to it the specified value as percentage.

Declaration
public void SetPercentValue(double value, int decimalPlaces, Field.NumberSeparatorStyle separatorStyle)
Public Sub SetPercentValue(value As Double, decimalPlaces As Integer, separatorStyle As Field.NumberSeparatorStyle)
Parameters
Type Name Description
double value

The percentage value to assign. For example, 1 corresponds to 100%, 0.5 to 50%, and so on.

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.