Summary
Describes how a stroke is drawn.
- Namespace
- Avalonia
.Media - Interfaces
-
- IAvaloniaObject
- IAvaloniaObjectDebug
- I
Notify Property Changed - IValueSink
- IPen
- Base Types
-
- object
- AvaloniaObject
graph BT
Type-->Base0["AvaloniaObject"]
click Base0 "/api/Avalonia/AvaloniaObject"
Base0-->Base1["object"]
Type-.->Interface0["IAvaloniaObject"]
click Interface0 "/api/Avalonia/IAvaloniaObject"
Type-.->Interface1["IAvaloniaObjectDebug"]
click Interface1 "/api/Avalonia.Diagnostics/IAvaloniaObjectDebug"
Type-.->Interface2["INotifyPropertyChanged"]
Type-.->Interface3["IValueSink"]
Type-.->Interface4["IPen"]
click Interface4 "/api/Avalonia.Media/IPen"
Type["Pen"]
class Type type-node
Syntax
public class Pen : AvaloniaObject, IAvaloniaObject, IAvaloniaObjectDebug, INotifyPropertyChanged,
IValueSink, IPen
Constructors
Name | Summary |
---|---|
Pen |
Initializes a new instance of the Pen class.
|
Pen |
Initializes a new instance of the Pen class.
|
Pen |
Initializes a new instance of the Pen class.
|
Events
Name | Type | Summary |
---|---|---|
Invalidated | EventHandler |
Raised when the pen changes.
|
PropertyChanged | EventHandler |
Raised when a
AvaloniaProperty value changes on this object.
Inherited from AvaloniaObject
|
Fields
Name | Constant Value | Summary |
---|---|---|
BrushProperty |
Defines the
Brush property.
static
|
|
DashStyleProperty |
Defines the
DashStyle property.
static
|
|
LineCapProperty |
Defines the
LineCap property.
static
|
|
LineJoinProperty |
Defines the
LineJoin property.
static
|
|
MiterLimitProperty |
Defines the
MiterLimit property.
static
|
|
ThicknessProperty |
Defines the
Thickness property.
static
|
Properties
Name | Value | Summary |
---|---|---|
Brush | IBrush |
Gets or sets the brush used to draw the stroke.
|
DashStyle | IDashStyle |
Gets or sets the style of dashed lines drawn with a
Pen object.
|
InheritanceParent | IAvaloniaObject |
Gets or sets the parent object that inherited
AvaloniaProperty values
are inherited from.
Inherited from AvaloniaObject
|
LineCap | PenLineCap |
Gets or sets the type of shape to use on both ends of a line.
|
LineJoin | PenLineJoin |
Gets or sets the join style for the ends of two consecutive lines drawn with this
Pen .
|
MiterLimit | double |
Gets or sets the limit of the thickness of the join on a mitered corner.
|
Thickness | double |
Gets or sets the stroke thickness.
|
this[ |
object |
Gets or sets the value of a
AvaloniaProperty .
Inherited from AvaloniaObject
|
this[ |
IBinding |
Gets or sets a binding for a
AvaloniaProperty .
Inherited from AvaloniaObject
|