using System.Drawing; IGraphics g = ... //get the IGraphics interface Pen myPen = g.CreatePen(Color.Blue, 2);
using System.Drawing.Drawing2D; IGraphics g = ... //get the IGraphics interface Pen myPen = g.CreatePen(Color.Red, 1); myPen.DashStyle = DashStyle.DashDot;These examples use the 'System.Drawing' package library, which provides classes for drawing graphics in Windows Forms applications.