Alsing.Windows.Forms.CoreLib.FormatLabelControl.OnMouseUp C# (CSharp) Метод

OnMouseUp() защищенный Метод

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void
        protected override void OnMouseUp(MouseEventArgs e)
        {
            int y = e.Y;
            int x = e.X;

            int index = 0;
            bool Link = false;
            //this.Cursor =Cursors.Arrow;
            _ActiveElement = null;
            if (_Rows != null)
            {
                foreach (Row r in _Rows)
                {
                    if (y >= r.Top && y <= r.Top + r.Height)
                    {
                        foreach (Word w in r.Words)
                        {
                            if (y >= w.ScreenArea.Top && y <= w.ScreenArea.Bottom)
                            {
                                if (x >= w.ScreenArea.Left && x <= w.ScreenArea.Right)
                                {
                                    if (w.Element.Link != null)
                                    {
                                        Link = true;
                                        _ActiveElement = w.Element.Link;
                                        break;
                                    }
                                }
                            }
                        }
                        break;
                    }
                    index++;
                }
            }
            if (Link)
            {
                Cursor = Cursors.Hand;
                Invalidate();
                OnClickLink(GetAttrib("href", _ActiveElement.Tag));
            }
            else
            {
                Cursor = Cursors.Arrow;
                Invalidate();
            }


            base.OnMouseUp(e);
        }