Form

GPALCheckBox

GPALCheckBox is a standard checkbox that can be added to a GPALForm with WithFormControl. It holds a checked/unchecked state that maps to a boolean value in the data grid when FillInFrom is used. The checkbox label appears beside the control. When scraping or filling in browser-based checkboxes, the Browser's WithSelector and LeftClick handle the web equivalent.

Examples

GPAL Fluent: High-level fluent C# API

//The checkbox value is included in the form's data grid output. A checked state maps to 'true' and an unchecked state maps to 'false' in the grid string representation.

// Add a checkbox to a form

GPAL.Form

.WithTitle("Settings")

.WithFormControl((Checkbox)GPAL.Checkbox

.WithText("Enable notifications"))

.ShowDialog();

💬 Ask GPAL