How to get current Font.Name?

General TRichView support forum. Please post your questions here
Post Reply
PeterPanino
Posts: 57
Joined: Tue Jul 13, 2010 10:50 pm

How to get current Font.Name?

Post by PeterPanino » Wed Dec 27, 2017 11:11 pm

TRichViewEdit 16.15.10

How can I get the Font.Name at the caret?

I would like to show the current font name in the status bar.

Ceprotec
Posts: 219
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Re: How to get current Font.Name?

Post by Ceprotec » Thu Dec 28, 2017 5:02 am

Code: Select all

rv.Style.TextStyles[rv.CurTextStyleNo].FontName
it might be useful: http://www.trichview.com/help/index.htm ... anged.html

PeterPanino
Posts: 57
Joined: Tue Jul 13, 2010 10:50 pm

Re: How to get current Font.Name?

Post by PeterPanino » Thu Dec 28, 2017 1:17 pm

Thank you - this works very well!

Post Reply