Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

How to set text color at selection #474

Open
dommilosz opened this issue Mar 21, 2020 · 0 comments
Open

How to set text color at selection #474

dommilosz opened this issue Mar 21, 2020 · 0 comments

Comments

@dommilosz
Copy link

dommilosz commented Mar 21, 2020

I want to color text at selection but it is always white.
What am I doing wrong?
I don't mean box.SetSelectionForeColor(..) becouse I want to change text color not selection style

                box.StartStyling(ibefore);
                box.SetStyling(box.SelectionEnd - box.SelectionStart + 1,255);
                box.Styles[255].ForeColor = Color.Red;```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant