This property sets a custom dash pattern for straight lines, polylines, polygons, and pen objects.

[Visual Basic] Public Property DashPattern As Single()
[C#] public float[] DashPattern {get; set;}

Property Value

An array indicating the length of the dashed lines and blanks

The default value is {2.0F, 1.0F}.

Explanation

The DashStyle property sets a custom dash pattern for straight lines, polylines, polygons, and pen objects. When the DashStyle property is System.Drawing.Drawing2D.DashStyle.Custom, the dashed line pattern set in this property is valid.

The property is represented by the length relative to the line thickness, and the values are "first length, spacing, second length, next spacing ...".

* Example of setting the broken line of the pattern [---- --- ---] in (c #): ImageKit1.Edit.DashPattern = new float [] {2.0F, 1.0F, 2.0F, 1.0F, 2.0F, 2.0F};

The SelectedObjectDashPattern property allows you to change it even after drawing.

Also See

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation