Skip to main content

LineCap

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies the available cap styles with which a Pen object can end a line.

public enum LineCap : Enum

Fields

NameDescription
AnchorMaskSpecifies a mask used to check whether a line cap is an anchor cap.
ArrowAnchorSpecifies an arrow-shaped anchor cap.
CustomSpecifies a custom line cap.
DiamondAnchorSpecifies a diamond anchor cap.
FlatSpecifies a flat line cap.
NoAnchorSpecifies no anchor.
RoundSpecifies a round line cap.
RoundAnchorSpecifies a round anchor cap.
SquareSpecifies a square line cap.
SquareAnchorSpecifies a square anchor line cap.
TriangleSpecifies a triangular line cap.

Used By

NameDescription
Pen.EndCapGets or sets the cap style used at the end of lines drawn with this Pen.