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)
         {
         }
     }
 }

Fields

Miter

Summary

Regular angular vertices.

Signature

1
public static PenLineJoin Miter;

Return Value

PenLineJoin

Bevel

Summary

Beveled vertices.

Signature

1
public static PenLineJoin Bevel;

Return Value

PenLineJoin

Round

Summary

Rounded vertices.

Signature

1
public static PenLineJoin Round;

Return Value

PenLineJoin