Pen.IHandler

public interface Pen.IHandler
Defines a pen to be used with the Graphics drawing methods

Methods

Create

#
object Create(Brush brush, float thickness)
Creates a new pen with the specified brush and thickness
brush (Brush)Brush for the new pen
thickness (float)Thickness of the new pen
ControlObject for the pen

GetBrush

#
Brush GetBrush(Pen widget)
Gets the brush of the pen

GetLineCap

#
PenLineCap GetLineCap(Pen widget)
Gets the line cap style

GetLineJoin

#
PenLineJoin GetLineJoin(Pen widget)
Gets the style of line join for the pen

GetMiterLimit

#
float GetMiterLimit(Pen widget)
Gets the miter limit for the pen
Remarks: The miter limit specifies the maximum allowed ratio of miter lenth to stroke length in which a miter will be converted to a bevel. The default miter limit is 10.
widget (Pen)Pen to get the miter limit

GetThickness

#
float GetThickness(Pen widget)
Gets or sets the thickness (width) of the pen

SetDashStyle

#
void SetDashStyle(Pen widget, DashStyle dashStyle)
Sets the dash style of the pen
widget (Pen)Pen to set the dash style
dashStyle (DashStyle)Dash style to set to the pen

SetLineCap

#
void SetLineCap(Pen widget, PenLineCap lineCap)
Sets the line cap style

SetLineJoin

#
void SetLineJoin(Pen widget, PenLineJoin lineJoin)
Sets the style of line join for the pen
widget (Pen)Pen to set the line join style
lineJoin (PenLineJoin)Line join to set

SetMiterLimit

#
void SetMiterLimit(Pen widget, float miterLimit)
Sets the miter limit of the pen
Remarks: The miter limit specifies the maximum allowed ratio of miter lenth to stroke length in which a miter will be converted to a bevel. The default miter limit is 10.
widget (Pen)Pen to set the miter limit
miterLimit (float)Miter limit to set to the pen

SetThickness

#
void SetThickness(Pen widget, float thickness)
Sets the thickness (width) of the pen
widget (Pen)Pen to set the thickness
thickness (float)Thickness for the pen