Home Ask Login Register

Developers Planet

Your answer is one click away!

Reese February 2016

C# Richtextbox - Get text size after changing it by scrolling and holding ctrl

I have a richtextbox. When I'm holding control and spin the scroll wheel, the text size is changing. But how do I get the text size after changing it by ctrl + scroll? RichTextBox1.Font.Size is always 8.25.

Google did not help.


Thomas February 2016

What you're looking for is the ZoomFactor of RichTextBox:

Gets or sets the current zoom level of the RichTextBox.

That's why you don't see the font size change.

Post Status

Asked in February 2016
Viewed 1,188 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life