Class Pen
The pen implementation for Silverlight.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Controls.Diagrams.dll
Syntax
public class Pen
Constructors
Pen()
Pen(Brush)
Initializes a new instance of the Pen class.
Declaration
public Pen(Brush brush)
Parameters
System.Windows.Media.Brush
brush
The brush. |
Pen(Brush, Double)
Initializes a new instance of the Pen class.
Declaration
public Pen(Brush brush, double thickness)
Parameters
System.Windows.Media.Brush
brush
The brush. |
System.Double
thickness
The thickness. |
Pen(Brush, Double, DashStyle)
Initializes a new instance of the Pen class.
Declaration
public Pen(Brush brush, double thickness, DashStyle dashStyle)
Parameters
System.Windows.Media.Brush
brush
The brush of the pen. |
System.Double
thickness
The thickness of the pen. |
DashStyle
dashStyle
The dash style of the pen. |
Properties
Brush
Gets or sets the Brush object that defines the appearance of this pen.
Declaration
public Brush Brush { get; set; }
Property Value
System.Windows.Media.Brush
|
DashStyle
Gets or sets the style used for dashed pens.
Declaration
public DashStyle DashStyle { get; set; }
Property Value
DashStyle
|
Thickness
Gets or sets the width of the pen.
Declaration
public double Thickness { get; set; }
Property Value
System.Double
|
Methods
Clone()
Creates an exact copy of this pen.
Declaration
public Pen Clone()
Returns
Pen
An instance of the Pen class. |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |