Skip to content

PenLineJoin

Summary

Describes the shape that joins two lines or segments.

Signature

1
public enum PenLineJoin

Namespace

cAlgo.API

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)
         {
         }
     }
 }
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 import clr
 clr.AddReference("cAlgo.API")
 from cAlgo.API import *
 class Test():    
     def initialize(self):
         rectangle = Rectangle()
         rectangle.HorizontalAlignment = HorizontalAlignment.Center
         rectangle.VerticalAlignment = VerticalAlignment.Center
         # StrokeLineJoin is a parameter of type StrokeLineJoin defined
         # in indicator C# file
         rectangle.StrokeLineJoin = api.StrokeLineJoin
         rectangle.StrokeColor = Color.Red
         rectangle.StrokeThickness = 4
         rectangle.Width = 200
         rectangle.Height = 100
         api.Chart.AddControl(rectangle)

Fields

Miter

Summary

Regular angular vertices.

Signature

1
PenLineJoin.Miter;

Return Value

PenLineJoin

Bevel

Summary

Beveled vertices.

Signature

1
PenLineJoin.Bevel;

Return Value

PenLineJoin

Round

Summary

Rounded vertices.

Signature

1
PenLineJoin.Round;

Return Value

PenLineJoin