Summary
Describes the shape that joins two lines or segments.
Syntax
public sealed enum PenLineJoin
Members
Name | Type | Summary |
---|---|---|
Bevel | Field | Beveled vertices. |
Miter | Field | Regular angular vertices. |
Round | Field | Rounded vertices. |
Example 1
using cAlgo.API; namespace cAlgo { // This sample shows how to use a shape Stroke Line Join [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class PenLineJoinSample : Indicator { [Parameter("Stroke Line Join", DefaultValue = PenLineJoin.Miter)] public PenLineJoin StrokeLineJoin { get; set; } protected override void Initialize() { var rectangle = new Rectangle { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center, StrokeLineJoin = StrokeLineJoin, StrokeColor = Color.Red, StrokeThickness = 4, Width = 200, Height = 100, }; Chart.AddControl(rectangle); } public override void Calculate(int index) { } } }