Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.AcroForms Namespace / TextField Class / SetPercentFormat Method
The number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
The placement of commas and periods, see Field.NumberSeparatorStyle.

In This Topic
    SetPercentFormat Method (TextField)
    In This Topic
    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.

    Syntax
    'Declaration
     
    Public Sub SetPercentFormat( _
       ByVal decimalPlaces As System.Integer, _
       ByVal separatorStyle As Field.NumberSeparatorStyle _
    ) 
    public void SetPercentFormat( 
       System.int decimalPlaces,
       Field.NumberSeparatorStyle separatorStyle
    )

    Parameters

    decimalPlaces
    The number of digits that appear to the right of the decimal point. Valid values are from 0 to 10, inclusive.
    separatorStyle
    The placement of commas and periods, see Field.NumberSeparatorStyle.
    See Also