Skip to content

HorizontalAlignment

Summary

Describes horizontal position related to an anchor point or a parent element

Signature

1
public enum HorizontalAlignment

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 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)
         {
         }
     }
 }

Fields

Center

Summary

Center horizontal alignment.

Signature

1
public static HorizontalAlignment Center;

Return Value

HorizontalAlignment

Left

Summary

Left horizontal alignment.

Signature

1
public static HorizontalAlignment Left;

Return Value

HorizontalAlignment

Summary

Right horizontal alignment.

Signature

1
public static HorizontalAlignment Right;

Return Value

HorizontalAlignment

Stretch

Summary

Stretch horizontal alignment.

Signature

1
public static HorizontalAlignment Stretch;

Return Value

HorizontalAlignment


Last update: December 6, 2023