Form

GPALRichTextBox

Everything on Settings Every Control Takes applies here too. GPAL.RichTextBox builds one. WithText sets the Markdown source, and setting the Text property later re-renders it: headings, bold, italic, underline, strikethrough, code and bullet or numbered lists, nested by leading spaces. AppendLine adds one line verbatim rather than as Markdown, and takes a rolling cap so a log pane keeps the last n lines and no more. Clear empties it and ScrollToEnd scrolls to the last line. All three are thread safe, so a workflow writes to it while the form is up. WithReadOnly is the default for this control. GPAL.RichTextBoxFor(text) is the shorthand.

Examples

GPAL Fluent: High-level fluent C# API

//AppendLine is verbatim on purpose: a log line starting with # or * is a log line, not a heading or a bullet.

GPALRichTextBox log = (GPALRichTextBox)GPAL.RichTextBox

.WithText("# Run log


Waiting to start.")

.WithHeight(260)

.WithName("log");


// one line at a time, keeping the last 500

log.AppendLine($"Downloaded {file.Last}", 500);

log.ScrollToEnd();

💬 Ask GPAL