Fires before any line segment is rendered in the display of the control, allowing the developer the chance to custom draw the current line segment.
Syntax
Event Data
The event handler receives an argument of type UserDrawnLineSegmentEventArgs containing data related to this event. The following UserDrawnLineSegmentEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Character | The character from the control's Text property that contains the line segment to be drawn. |
| EndPoint | The ending point of the line segment to be drawn. |
| Graphics | A handle to the Graphics object responsible for the drawing. |
| LineSegment | The line segment being drawn. |
| PaintLineSegment | Indicates to the control if the default painting routines should be used or not. |
| Position | The index of the character within the control's Text property. |
| StartPoint | The starting point of the line segment to be drawn. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also