Alsing.Windows.Forms.SyntaxBox.AutoListForm.SelectItem C# (CSharp) Method

SelectItem() private method

private SelectItem ( int x, int y ) : void
x int
y int
return void
        private void SelectItem(int x, int y)
        {
            var p = new Point(x, y);
            int r = (p.Y/LB.ItemHeight) + LB.TopIndex;
            if (r != LB.SelectedIndex)
            {
                if (r < LB.Items.Count && r >= 0)
                {
                    LB.SelectedIndex = r;
                }
            }
        }

Same methods

AutoListForm::SelectItem ( string text ) : void