System.Drawing.Pen
Defines an object used to draw lines and curves. This class cannot be inherited.
namespace System.Drawing
{
public sealed class Pen : MarshalByRefObject, ICloneable, IDisposable, ISystemColorTracker
{
public float Width { get; set; }
public LineCap StartCap { get; set; }
public LineCap EndCap { get; set; }
public CustomLineCap CustomStartCap { get; set; }
public CustomLineCap CustomEndCap { get; set; }
public DashCap DashCap { get; set; }
public LineJoin LineJoin { get; set; }
public float MiterLimit { get; set; }
public PenAlignment Alignment { get; set; }
public Matrix Transform { get; set; }
public PenType PenType { get; }
public Color Color { get; set; }
public Brush Brush { get; set; }
public DashStyle DashStyle { get; set; }
public float DashOffset { get; set; }
public float[] DashPattern { get; set; }
public float[] CompoundArray { get; set; }
public Pen(Color color);
public Pen(Color color, float width);
public Pen(Brush brush);
public Pen(Brush brush, float width);
public object Clone();
public void Dispose();
public void SetLineCap(LineCap startCap, LineCap endCap, DashCap dashCap);
public void ResetTransform();
public void MultiplyTransform(Matrix matrix);
public void MultiplyTransform(Matrix matrix, MatrixOrder order);
public void TranslateTransform(float dx, float dy);
public void TranslateTransform(float dx, float dy, MatrixOrder order);
public void ScaleTransform(float sx, float sy);
public void ScaleTransform(float sx, float sy, MatrixOrder order);
public void RotateTransform(float angle);
public void RotateTransform(float angle, MatrixOrder order);
}
}