System.Drawing.Drawing2D.PenAlignment Enumeration

Specifies the alignment of a System.Drawing.Pen object in relation to the theoretical, zero-width line.

Syntax

public enum PenAlignment

Remarks

A System.Drawing.Pen object has width. The center point of this pen width is aligned relative to the line being drawn depending on the alignment value. A System.Drawing.Pen object can be positioned to draw inside of a line or centered over the line.

Members

Member NameDescription
Center

Specifies that the System.Drawing.Pen object is centered over the theoretical line.

Inset

Specifies that the System.Drawing.Pen is positioned on the inside of the theoretical line.

Left

Specifies the System.Drawing.Pen is positioned to the left of the theoretical line.

Outset

Specifies the System.Drawing.Pen is positioned on the outside of the theoretical line.

Right

Specifies the System.Drawing.Pen is positioned to the right of the theoretical line.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0