System.Windows.Forms.Control.ChangeFontSize(int)

Here are the examples of the csharp api class System.Windows.Forms.Control.ChangeFontSize(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: cs-script.npp
Source File: Utils.cs
View license
static void MapTxt_MouseWheel(object sender, MouseEventArgs e, Action<Control, bool> customHandler)
        {
            if (KeyInterceptor.IsPressed(Keys.ControlKey))
            {
                var control = (Control) sender;
                if (customHandler != null)
                    customHandler(control, e.Delta > 0);
                else
                {
                    var fontSizeDelta = e.Delta > 0 ? 2 : -2;
                    control.ChangeFontSize(fontSizeDelta);
                }
            }
        }