dbicDigit Send comments on this topic.
Developing with dbicDigit - User Drawn Line Segment

Glossary Item Box

A User Drawn Line Segment allows the developer to take over complete control of each individual line of the rendered character presentation in the control. 

The User Drawn Line Segment event fires before each line is drawn for each character in the control.  The event passes an e argument that contains the following custom properties …

·        e.Character (of type Char): The character from the control's Text property.

·        e.EndPoint (of type Point): The x/y coordinates of the end of the line being drawn..

·        e.Graphics (of type System.Drawing.Graphics): A handle to the graphics object responsible for drawing the control. Through the e.Graphics object the developer has access to the GDI+ methods for drawing objects to a display device.

·        e.LineSegment (of type enumLineSegment): Determines which line segment is being drawn.

·        e.PaintLineSegment (of type Boolean): Determines if the internal routines of the control should draw the line segment. When the PaintLineSegment property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the line segment.

·        e.Position (of type Integer): The 0-based index of the character within the string assigned to the control's Text property.

·        e.StartPoint (of type Point): The x/y coordinates of the start of the line being drawn..