Pen::Clone Method ()
.NET Framework (current version)
Creates an exact copy of this Pen.
Assembly: System.Drawing (in System.Drawing.dll)
Implements
ICloneable::Clone()The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. The code performs the following actions:
Creates a Pen.
Creates a copy of that pen.
Draws a line to the screen, using the copy of the pen.
.NET Framework
Available since 1.1
Available since 1.1
Show: