System.Windows.Forms.Design.Behavior.Glyph.GetHitTest Method

Provides hit test logic.

Syntax

public abstract System.Windows.Forms.Cursor GetHitTest (System.Drawing.Point p)

Parameters

p
A point to hit-test.

Returns

A System.Windows.Forms.Cursor if the System.Windows.Forms.Design.Behavior.Glyph is associated with p; otherwise, null.

Remarks

The Glyph.GetHitTest(System.Drawing.Point) method is an abstract method that forces System.Windows.Forms.Design.Behavior.Glyph implementations to provide hit test logic. Given any point, if the System.Windows.Forms.Design.Behavior.Glyph has decided to be involved with that location, it will need to return a valid System.Windows.Forms.Cursor. Otherwise, returning null will cause the System.Windows.Forms.Design.Behavior.BehaviorService to ignore the location.

Requirements

Namespace: System.Windows.Forms.Design.Behavior
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0