ComponentFactory.Krypton.Ribbon.GalleryButtonController.ForceLeave C# (CSharp) Method

ForceLeave() public method

Force the leaving of the area.
public ForceLeave ( ) : void
return void
        public void ForceLeave()
        {
            if (_mouseOver)
            {
                _pressed = false;
                _mouseOver = false;
                UpdateTargetState(new Point(int.MaxValue, int.MaxValue));
                if (_repeatTimer != null)
                    _repeatTimer.Stop();
            }
        }

Usage Example

コード例 #1
0
 /// <summary>
 /// Force the mouse to leave the button.
 /// </summary>
 public void ForceLeave()
 {
     _controller.ForceLeave();
 }