Skip to main content

IPen Interface

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Describes how a stroke is drawn.

public interface IPen

Properties

NameDescription
BrushGets the brush used to draw the stroke.
DashStyleGets the style of dashed lines drawn with a Avalonia.Media.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 Avalonia.Media.PathFigure contained in a Avalonia.Media.PathGeometry object.
MiterLimitGets the limit of the thickness of the join on a mitered corner.
ThicknessGets the stroke thickness.

Brush Property

Gets the brush used to draw the stroke.

public Avalonia.Media.IBrush Brush { get; set; }

DashStyle Property

Gets the style of dashed lines drawn with a Avalonia.Media.Pen object.

public Avalonia.Media.IDashStyle DashStyle { get; set; }

LineCap Property

Gets the type of shape to use on both ends of a line.

public Avalonia.Media.PenLineCap LineCap { get; set; }

LineJoin Property

Gets a value describing how to join consecutive line or curve segments in a Avalonia.Media.PathFigure contained in a Avalonia.Media.PathGeometry object.

public Avalonia.Media.PenLineJoin LineJoin { get; set; }

MiterLimit Property

Gets the limit of the thickness of the join on a mitered corner.

public double MiterLimit { get; set; }

Thickness Property

Gets the stroke thickness.

public double Thickness { get; set; }