Form

GPALTextArea

Everything on Settings Every Control Takes applies here too. GPAL.TextArea builds one. WithText sets the starting text and WithPlaceholder the grey prompt shown while it is empty. WithReadOnly shows output without letting it be edited, which is what a log pane wants. The Text property reads and writes the content at runtime from any thread. TextChanged is the primary event. A text area is also what GPAL.WithPublishToControl writes published events into. GPAL.TextAreaFor(text) is the shorthand.

Examples

GPAL Fluent: High-level fluent C# API

//WithReadOnly comes before WithName. Text is marshalled by GPAL, so a background workflow can append to it while the form is up.

GPALTextArea output = (GPALTextArea)GPAL.TextArea

.WithReadOnly()

.WithHeight(220)

.WithName("output");


// every published GPAL event lands in it while the workflow runs

GPAL.WithPublishToControl(output);


// or write to it directly, from the workflow thread

output.Text += $"Downloaded {file.Last}{Environment.NewLine}";

💬 Ask GPAL