Skip to main content

IPen Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Describes how a stroke is drawn.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface IPen
View Source

Properties

BrushGets the brush used to draw the stroke.
DashStyleGets the style of dashed lines drawn with a Pen object.
LineCapGets the type of shape to use on both ends of a line.
LineJoinGets a value describing how to join consecutive line or curve segments in a PathFigure contained in a PathGeometry object.
MiterLimitGets the limit of the thickness of the join on a mitered corner.
ThicknessGets the stroke thickness.

Extension Methods

ToImmutable()Converts a pen to an immutable pen.
(Defined by BrushExtensions)

See Also

Reference

Avalonia.Media Namespace