Skip to content
Discussion options

You must be logged in to vote

You define a range of characters in a string, with a substring - the beginning and the end. Include them in the range - I have a typo there, I mean new Range<int>(start_of_substring, end_of_substring); (if they are equal - then the formatting change will be applied to 1 character).

Then call the change you need. There is a whole family of .SelectionN properties (where there are Background, Foreground, FontFamily, Italic, Underline, etc.).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@Serg-Norseman
Comment options

@Serg-Norseman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant