Represents a text form field in a PDF document. Text fields allow users to enter text from the keyboard.
using Nutrient;Inherits from: PdfFormField
The SDK creates this class through factory methods or other SDK objects.
Properties
BackgroundColor
public Color? BackgroundColor { get; set; }The background color of the text field.
Type: Color?
BorderColor
public Color? BorderColor { get; set; }The border color of the text field.
Type: Color?
FontColor
public Color? FontColor { get; set; }The font color for the text field content.
Type: Color?
FontName
public string FontName { get; set; }The font name for the text field content.
Type: string
FontSize
public float FontSize { get; set; }The font size for the text field content.
Type: float
Text
public string Text { get; set; }The text content of the field. This is an alias for the Value property.
Type: string
Resource management
public void Dispose()PdfTextField implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.