Created
February 9, 2024 11:46
-
-
Save bjoerntx/2a6bb9e4e0a61489db9e47a4e9c77de8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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