---
id: "T:cAlgo.API.PenLineJoin"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/PenLineJoin/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# PenLineJoin (enum)

Describes the shape that joins two lines or segments.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum PenLineJoin
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This sample shows how to use a shape Stroke Line Join
    public partial class PenLineJoinSample : Indicator
    {
        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)
        {
        }
    }
}
```

Python:

```python
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
        rectangle.StrokeLineJoin = api.StrokeLineJoin
        rectangle.StrokeColor = Color.Red
        rectangle.StrokeThickness = 4
        rectangle.Width = 200
        rectangle.Height = 100

        api.Chart.AddControl(rectangle)
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true,
  "Parameters": [
    {
      "Name": "StrokeLineJoin",
      "DisplayName": "Stroke Line Join",
      "Type": "Enum",
      "EnumTypeFullName": "cAlgo.API.PenLineJoin",
      "DefaultValue": "Miter"
    }
  ]
}
```

## Values

- `PenLineJoin.Miter` — Regular angular vertices.
- `PenLineJoin.Bevel` — Beveled vertices.
- `PenLineJoin.Round` — Rounded vertices.

