PenLineJoin
enum cAlgo.API
DesktopCLICloud
Describes the shape that joins two lines or segments.
Definition
public enum PenLineJoin
Namespace: cAlgo.API · Group: Shapes
Examples
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)
{
}
}
}
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)
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true,
"Parameters": [
{
"Name": "StrokeLineJoin",
"DisplayName": "Stroke Line Join",
"Type": "Enum",
"EnumTypeFullName": "cAlgo.API.PenLineJoin",
"DefaultValue": "Miter"
}
]
}
Values
| Name | Value | Description |
|---|---|---|
Miter | 0 | Regular angular vertices. |
Bevel | 1 | Beveled vertices. |
Round | 2 | Rounded vertices. |