IPen Interface

Summary

Describes how a stroke is drawn.
Namespace
Avalonia.Media
Implementing Types
graph BT Type["IPen"] class Type type-node Implementing0["Pen"]-.->Type click Implementing0 "/api/Avalonia.Media/Pen" Implementing1["ImmutablePen"]-.->Type click Implementing1 "/api/Avalonia.Media.Immutable/ImmutablePen"

Syntax

public interface IPen

Properties

Name Value Summary
Brush IBrush
Gets the brush used to draw the stroke.
DashStyle IDashStyle
Gets the style of dashed lines drawn with a Pen object.
LineCap PenLineCap
Gets the type of shape to use on both ends of a line.
LineJoin PenLineJoin
Gets a value describing how to join consecutive line or curve segments in a PathFigure contained in a PathGeometry object.
MiterLimit double
Gets the limit of the thickness of the join on a mitered corner.
Thickness double
Gets the stroke thickness.

Extension Methods

Name Value Summary
ToImmutable() ImmutablePen
Converts a pen to an immutable pen.