Form

GPALSpacer

GPAL.SpacerFor(pixels) puts a gap exactly that many pixels tall between the control before it and the control after it. It has no margin of its own, so the gap is the number given. A form sized to its content counts it like any other row.

Examples

GPAL Fluent: High-level fluent C# API

//Built inline, since nothing reads a spacer back.

GPAL.Form

.WithTitle("About")

.WithFormControl(aboutText)

.WithFormControl(GPAL.SpacerFor(12))

.WithFormControl(moreBotsLink)

.WithFormControl(GPAL.SpacerFor(12))

.WithFormControl(okButton)

.ShowDialog();

💬 Ask GPAL