Class
DashStyle

Defines the dash style of a pen.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class DashStyle

Inheritance: objectDashStyle

Constructors

DashStyle()

Initializes a new instance of the DashStyle class.

Declaration

cs-api-definition
public DashStyle()

DashStyle(DoubleCollection, double)

Initializes a new instance of the DashStyle class.

Declaration

cs-api-definition
public DashStyle(DoubleCollection dashes, double offset)

Parameters

dashes

DoubleCollection

offset

double

Properties

Dashes

Gets or sets a collection of double values that indicate the pattern of dashes and gaps that is used to outline shapes.

Declaration

cs-api-definition
public DoubleCollection Dashes { get; }

Property Value

DoubleCollection

Id

Gets or sets the unique identifier of the style.

Declaration

cs-api-definition
public int Id { get; set; }

Property Value

int

The id.

Offset

Gets or sets the distance from the start of a line to the beginning of a dash pattern.

Declaration

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

Property Value

double

Methods

Clone()

Creates an exact copy of this pen.

Declaration

cs-api-definition
public DashStyle Clone()

Returns

DashStyle

An instance of the Pen class.

FromId(int)

Returns the dash style with the specified identifier (if it exists).

Declaration

cs-api-definition
public static DashStyle FromId(int id)

Parameters

id

int

The id.

Returns

DashStyle

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()