API Line styles constants
Summary
The Line style constants are used in graphical objects functions to set the style of the line
Definition
Constant name | Value |
---|---|
LineStyle.STYLE_SOLID | The pen is solid |
LineStyle.STYLE_DASH | The pen is dashed |
LineStyle.STYLE_DOT | The pen is dotted |
LineStyle.STYLE_DASHDOT | The pen has alternating dashes and dots |
LineStyle.STYLE_DASHDOTDOT | The pen has alternating dashes and double dots |
Examples
C# code snippet :
// Create a horizontal line with Y = 1.50
ObjectCreate("LineExample", ObjectType.OBJ_HLINE, DateTime.MinValue, 1.50);
// Set the line style to STYLE_DASHDOT
ObjectSet("LineExample", ObjectProperty.OBJPROP_STYLE, LineStyle.STYLE_DASHDOT);