CustomLineCap::Clone Method ()
.NET Framework (current version)
Creates an exact copy of this CustomLineCap.
Assembly: System.Drawing (in System.Drawing.dll)
Implements
ICloneable::Clone()The following example is designed for use with Windows Forms, and it requires PaintEventArgse, an Paint event object. The code performs the following actions:
Creates a custom line cap by using the GraphicsPath object.
Creates a CustomLineCap object, firstCap,using the GraphicsPath object just created.
Creates a clone of firstCap by using the Clone method.
Sets up the CustomStartCap and CustomEndCap properties of the Pen object, and uses that pen to draw a line and the custom caps to the screen.
.NET Framework
Available since 1.1
Available since 1.1
Show: