Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 9, 2024 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/2a6bb9e4e0a61489db9e47a4e9c77de8 to your computer and use it in GitHub Desktop.
Save bjoerntx/2a6bb9e4e0a61489db9e47a4e9c77de8 to your computer and use it in GitHub Desktop.
// create a new SubTextPart with the name "part1" and id 1
TXTextControl.SubTextPart subTextPart = new TXTextControl.SubTextPart("part1", 1);
// set the highlight color to red
subTextPart.HighlightColor = Color.FromArgb(60, Color.Red);
subTextPart.HighlightMode = TXTextControl.HighlightMode.Always;
// add the subtext part to the SubTextParts collection
textControl1.SubTextParts.Add(subTextPart);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment