Category / Section
Need to document the padding added to lines during hit testing
1 min read
Line padding during hit testing
The Diagram control have built-in option to extend the padding size of the connector for selecting/hitting the connector by using Connector’s “LineHitTestPadding” property while hovering the mouse pointer.
The following code example is used to extend the padding size of the connector.
[C#]
LineConnector line = new LineConnector(new Point(100, 100), new PointF(300, 300)); //the Padding added to lines during hit testing line.LineHitTestPadding = 50;
[VB]
Dim line As New LineConnector(New Point(100, 100), New PointF(300, 300)) 'the Padding added to lines during hit testing line.LineHitTestPadding = 50