Summary
Draws a series of connected straight lines.
Syntax
public class Polyline : Shape
Members
Name | Type | Summary |
---|---|---|
FillRule | Property | Gets or sets a FillRule enumeration that specifies how the interior fill of the shape is determined. |
Points | Property | Gets or sets a collection that contains the vertex points of the Polyline. |
Polyline | Method | Initializes a new instance of the Polyline class. |
Example 1
using cAlgo.API; namespace cAlgo { // This sample shows how to use Polyline to draw connected lines [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class PolylineSample : Indicator { protected override void Initialize() { Chart.AddControl(new Polyline { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, StrokeColor = Color.Red, StrokeThickness = 1, Points = new[] { new Point(10, 10), new Point(100,200), new Point(10, 100), new Point(10, 10), } }); } public override void Calculate(int index) { } } }