Summary
Describes horizontal position related to an anchor point or a parent element
Syntax
public sealed enum HorizontalAlignment
Members
Name | Type | Summary |
---|---|---|
Center | Field | Center horizontal alignment. |
Left | Field | Left horizontal alignment. |
Right | Field | Right horizontal alignment. |
Stretch | Field | Stretch horizontal alignment. |
Example 1
using cAlgo.API; namespace cAlgo { // This sample indicator shows how to use Chart.DrawHorizontalLine method to draw an horizontal line [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class HorizontalLineSample : Indicator { protected override void Initialize() { Chart.DrawHorizontalLine("horizontalLine", Bars.ClosePrices.LastValue, Color.Red); } public override void Calculate(int index) { } } }