This method draws a polyline.

[Visual Basic] Public Function DrawPolyline(pt As System.Windows.Point()) As Boolean
[C#] public bool DrawPolyline(System.Windows.Point[] pt);

Parameters

pt

The array of type System.Windows.Point that designates the points of the polyline

Return Value

Returns True if successful, otherwise returns False.

Explanation

The DrawPolyline method draws a polyline. To draw a polyline, set appropriate values in the PenWidth, ForeColor, ForeColorOpacity, StartLineCap, EndLineCap, DashStyle, LineJoin, StartArrowCap, StartArrowCapFilled, StartArrowCapSize, EndArrowCap, EndArrowCapFilled, and EndArrowCapSize properties. Set the array of type System.Windows.Point to designate the points of the polyline in the DrawPolyline's pt parameter. There must be 2 or more Points set in the pt parameter. When the DrawPolyline method is executed, the polyline will be drawn. If a portion of the polyline lies outside the ImageKit control and the LimitAnnotationPosition property or LimitDrawPosition property are true, the polyline will be resized to fit completely within the ImageKit control.

To delete the polyline drawn with the DrawPolyline method, right click the object and display the context menu, the select "Undo" or execute the Undo method.

The DrawPolyline method can be used without setting the EditKind property to KindOfEdit.Polyline.

It is also possible to draw a polyline by setting the EditKind property to KindOfEdit.Polyline then, on the base image displayed in the ImageKit control, use the mouse. For more details, please refer to the Edit Overview.

See also

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation