DesignerGetHitTest() public method

Is the provided over a part of the view that wants the mouse.
public DesignerGetHitTest ( Point pt ) : bool
pt Point Mouse point.
return bool
示例#1
0
        /// <summary>
        /// Is the provided over a part of the view that wants the mouse.
        /// </summary>
        /// <param name="pt">Mouse point.</param>
        /// <returns>True if the view wants the mouse position; otherwise false.</returns>
        public override bool DesignerGetHitTest(Point pt)
        {
            // Check if any of the button specs want the point
            return(_headerGroup.DesignerGetHitTest(pt) || base.DesignerGetHitTest(pt));

            // Let base class search individual stack items
        }
 /// <summary>
 /// Is the provided over a part of the view that wants the mouse.
 /// </summary>
 /// <param name="pt">Mouse point.</param>
 /// <returns>True if the view wants the mouse position; otherwise false.</returns>
 public override bool DesignerGetHitTest(Point pt)
 {
     // Check if the header group wants the mouse
     return(_headerGroup.DesignerGetHitTest(pt));
 }