ARCed.Controls.MultiStateCheckbox.IsPointInCheckBox C# (CSharp) Метод

IsPointInCheckBox() публичный Метод

Returns true/false if given coordinates are within the bounds of the checkbox rectangle.
public IsPointInCheckBox ( int x, int y ) : bool
x int X value to check
y int Y value to check
Результат bool
        public bool IsPointInCheckBox(int x, int y)
        {
            int left = Padding.Left;
            int top = (Height - 12) / 2;
            return (x >= left && x <= left + 12 && y >= top && y <= top + 12);
        }

Same methods

MultiStateCheckbox::IsPointInCheckBox ( Point point ) : bool