Line, Oval, Rectangle, RoundRectangle controls
The LineStyle property specifies the appearance of a line object or the border around other drawing objects.
Select a line style from the Line Style drop-down list on the General page of the control’s Properties view.
The LineStyle property takes a value of the LineStyle enumerated datatype. The following example sets a dashed line for a Rectangle:
r_1.LineStyle = Dash!