<< Click to Display Table of Contents >> NShape Reference
|
Tests whether the shape has a control point near the given coordinates.
public abstract ControlPointId HitTest(int x, int y, ControlPointCapabilities controlPointCapability, int range) |
This method tests whether the shape has a control point near the given coordinates. The maximum difference between the hit coordinate and the control point hit is defined by the range parameter. The control points to check can be restricted by the parameter controlPointCapability. Only control points that have the defined capabilities are eligible.
Name |
Description |
---|---|
x, y |
Defines the (mouse) coordinates to test. |
controlPointCapability |
Restricts the control points to check by their capabilities. ControlPointCapabilies.All fits all control points. |
range |
Defines the maximum distance between the hit coordinate and the control point in logical units. |
Id of hit control point or ControlPointId.None.
None