Pen Class
Describes how a stroke is drawn.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class Pen : AvaloniaObject, IPen
Public NotInheritable Class Pen
Inherits AvaloniaObject
Implements IPen
[<SealedAttribute>]
type Pen =
class
inherit AvaloniaObject
interface IPen
end
Inheritance | Object → AvaloniaObject → Pen |
Implements | IPen |
Constructors
Pen() | Initializes a new instance of the Pen class. |
Pen(IBrush, Double, IDashStyle, PenLineCap, PenLineJoin, Double) | Initializes a new instance of the Pen class. |
Pen(UInt32, Double, IDashStyle, PenLineCap, PenLineJoin, Double) | Initializes a new instance of the Pen class. |
Properties
Brush | Gets or sets the brush used to draw the stroke. |
DashStyle | Gets or sets the style of dashed lines drawn with a Pen object. |
Item(AvaloniaProperty) | Gets or sets the value of a AvaloniaProperty. (Inherited from AvaloniaObject) |
Item(IndexerDescriptor) | Gets or sets a binding for a AvaloniaProperty. (Inherited from AvaloniaObject) |
LineCap | Gets or sets the type of shape to use on both ends of a line. |
LineJoin | Gets or sets the join style for the ends of two consecutive lines drawn with this Pen. |
MiterLimit | Gets or sets the limit of the thickness of the join on a mitered corner. |
Thickness | Gets or sets the stroke thickness. |
Methods
Events
PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (Inherited from AvaloniaObject) |
Fields
BrushProperty | Defines the Brush property. |
DashStyleProperty | Defines the DashStyle property. |
LineCapProperty | Defines the LineCap property. |
LineJoinProperty | Defines the LineJoin property. |
MiterLimitProperty | Defines the MiterLimit property. |
ThicknessProperty | Defines the Thickness property. |