Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 18, 2022 21:58
Show Gist options
  • Save bjoerntx/c1e51e3d3d3468050e1fbc16c8520114 to your computer and use it in GitHub Desktop.
Save bjoerntx/c1e51e3d3d3468050e1fbc16c8520114 to your computer and use it in GitHub Desktop.
foreach (SubTextPart subTextPart in textControl1.SubTextParts) {
if (subTextPart.Name == "SubTextPart2") {
textControl1.Select(subTextPart.Start - 1, subTextPart.Length);
textControl1.Selection.Text = "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment