Class DashStyle
Defines the dash style of a pen.
Inheritance
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class DashStyle : Object
Constructors
DashStyle()
Initializes a new instance of the DashStyle class.
Declaration
public DashStyle()
DashStyle(DoubleCollection, Double)
Initializes a new instance of the DashStyle class.
Declaration
public DashStyle(DoubleCollection dashes, double offset)
Parameters
System.Windows.Media.DoubleCollection
dashes
|
System.Double
offset
|
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
public DoubleCollection Dashes { get; }
Property Value
System.Windows.Media.DoubleCollection
|
Id
Gets or sets the unique identifier of the style.
Declaration
public int Id { get; set; }
Property Value
System.Int32
The id. |
Offset
Gets or sets the distance from the start of a line to the beginning of a dash pattern.
Declaration
public double Offset { get; set; }
Property Value
System.Double
|
Methods
Clone()
Creates an exact copy of this pen.
Declaration
public DashStyle Clone()
Returns
DashStyle
An instance of the Pen class. |
FromId(Int32)
Returns the dash style with the specified identifier (if it exists).
Declaration
public static DashStyle FromId(int id)
Parameters
System.Int32
id
The id. |
Returns
DashStyle
|
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |