Language

FormWidgetInfo.Builder.SetFontSize(Single) Method

Definition

Sets the font size for text input.

[Android.Runtime.Register("setFontSize", "(F)Landroid/graphics/pdf/models/FormWidgetInfo$Builder;", "", ApiSince=35)]
public Android.Graphics.Pdf.Models.FormWidgetInfo.Builder SetFontSize(float fontSize);
[<Android.Runtime.Register("setFontSize", "(F)Landroid/graphics/pdf/models/FormWidgetInfo$Builder;", "", ApiSince=35)>]
member this.SetFontSize : single -> Android.Graphics.Pdf.Models.FormWidgetInfo.Builder

Parameters

fontSize
Single

The text-input font size in pixels.

Returns

This builder.

Attributes

Exceptions

Thrown when this widget is not a combo box or text field, or when fontSize is negative. Some Android implementations also throw when fontSize is zero or NaN.

Remarks

This setting is supported only for combo boxes and text fields. Use a font size greater than zero. Some Android implementations reject zero and NaN.

Java documentation for android.graphics.pdf.models.FormWidgetInfo.Builder.setFontSize(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to