Skip to content

PenLineJoin

Summary

Describes the shape that joins two lines or segments.

Signature

1
public enum PenLineJoin

Namespace

cAlgo.API

Fields

Name Description
Miter Regular angular vertices.
Bevel Beveled vertices.
Round Rounded vertices.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 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)
         {
         }
     }
 }

Last update: March 17, 2023