New to Telerik UI for WPFStart a free 30-day trial

Defines the dash style of a pen.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

C#
public class DashStyle

Inheritance: objectDashStyle

Constructors

Initializes a new instance of the DashStyle class.

C#
public DashStyle()

Initializes a new instance of the DashStyle class.

C#
public DashStyle(DoubleCollection dashes, double offset)
Parameters:dashesDoubleCollectionoffsetdouble

Properties

Dashes

DoubleCollection

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

C#
public DoubleCollection Dashes { get; }

Gets or sets the unique identifier of the style.

C#
public int Id { get; set; }
Property Value:

The id.

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

C#
public double Offset { get; set; }

Methods

Creates an exact copy of this pen.

C#
public DashStyle Clone()
Returns:

DashStyle

An instance of the Pen class.

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

C#
public static DashStyle FromId(int id)
Parameters:idint

The id.

Returns:

DashStyle

Returns a string that represents this instance.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Overrides: object.ToString()