RichTextBox ZoomFactor Property
-
Q #1: I have two buttons to zoom in and zoom out the text size of a RichTextBox. Is it possible to increment/decrement the ZoomFactor by 0.1F each time? Q #2: Does changing the ZoomFactor also change the font size when you save the file as .rtf? Thanks, Mark
-
Q #1: I have two buttons to zoom in and zoom out the text size of a RichTextBox. Is it possible to increment/decrement the ZoomFactor by 0.1F each time? Q #2: Does changing the ZoomFactor also change the font size when you save the file as .rtf? Thanks, Mark
Hi, Q1. from reading the documentation it is not completely clear, so an experiment may be in order. It says it accepts numbers from 1/64 to 64 That could mean all fractions 1/n and all integers n with 1 <= n <= 64 Q2. I doubt that very much; normally "zoom" indicates a visualization property, not a content property. Try it ! :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hi, Q1. from reading the documentation it is not completely clear, so an experiment may be in order. It says it accepts numbers from 1/64 to 64 That could mean all fractions 1/n and all integers n with 1 <= n <= 64 Q2. I doubt that very much; normally "zoom" indicates a visualization property, not a content property. Try it ! :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Q #1: I have two buttons to zoom in and zoom out the text size of a RichTextBox. Is it possible to increment/decrement the ZoomFactor by 0.1F each time? Q #2: Does changing the ZoomFactor also change the font size when you save the file as .rtf? Thanks, Mark
Yes it is Possible No it does not any effect on the saved File