Class
Pen

The pen implementation for Silverlight.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public class Pen

Inheritance: objectPen

Constructors

Pen()

Initializes a new instance of the Pen class.

Declaration

cs-api-definition
public Pen()

Pen(Brush)

Initializes a new instance of the Pen class.

Declaration

cs-api-definition
public Pen(Brush brush)

Parameters

brush

Brush

The brush.

Pen(Brush, double)

Initializes a new instance of the Pen class.

Declaration

cs-api-definition
public Pen(Brush brush, double thickness)

Parameters

brush

Brush

The brush.

thickness

double

The thickness.

Pen(Brush, double, DashStyle)

Initializes a new instance of the Pen class.

Declaration

cs-api-definition
public Pen(Brush brush, double thickness, DashStyle dashStyle)

Parameters

brush

Brush

The brush of the pen.

thickness

double

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

cs-api-definition
public Brush Brush { get; set; }

Property Value

Brush

DashStyle

Gets or sets the style used for dashed pens.

Declaration

cs-api-definition
public DashStyle DashStyle { get; set; }

Property Value

DashStyle

Thickness

Gets or sets the width of the pen.

Declaration

cs-api-definition
public double Thickness { get; set; }

Property Value

double

Methods

Clone()

Creates an exact copy of this pen.

Declaration

cs-api-definition
public Pen Clone()

Returns

Pen

An instance of the Pen class.

ToString()

Returns a string that represents this instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()