Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied