[Solved] - Can i change text forecolor with office2019theme?

Hi,
I tried with office2016colorful and it worked but on office2019 I tried the same with: node.textcolor but it didn't change. am i missing anything?
Thanks you!

5 Replies

DV Duraimurugan Vedagiri Syncfusion Team May 25, 2020 08:50 AM UTC

Hi GridLock,

Query: Can I change text forecolor with office2019theme?

Yes, you can change the text forecolor with help of BeforeNodePaint Event. Please refer the below documentation link for your reference.

https://help.syncfusion.com/windowsforms/treeview/appearance#paint-treenodeadv

Regards,
Durai



TG The GridLock May 25, 2020 09:29 AM UTC

Hi Durai,
I have a textbox searching for the node, using textbox_changed if I find the result then the node will be highlighted, can I use this event to do that?
Also if I want to change backcolor and textcolor treeview where can I set them?
Thanks


DV Duraimurugan Vedagiri Syncfusion Team May 26, 2020 11:36 AM UTC

Hi Gridlock,

Sorry for the inconvenienced cause.

Query: Can I change text forecolor with office2019theme?

Yes, you can change the text forecolor with office2019theme. Please refer the below documentation for your reference.

https://help.syncfusion.com/windowsforms/skins/getting-started#styles

Regards,
Durai


TG The GridLock May 27, 2020 04:43 PM UTC

Hi Durai,
I still haven't used office2019 if I can't set the textcolor for each node, when I use the pain event I will have to create a list or collection and add textnodes to highlight node (in my case, the highlighting is only temporary then i need to reset textnode's color). I will use the office2016 theme (easier problem solving).
Thanks you.


DV Duraimurugan Vedagiri Syncfusion Team May 28, 2020 12:19 PM UTC

Hi GridLock,

Thanks for your update.

Please let us know if you need any further assistance.

Regards,
Durai


Loader.
Up arrow icon