垂直配置

概要

アンカー ポイントまたは親要素に関連する垂直位置を説明します。

シグネチャ

1
public enum VerticalAlignment

 

名前空間

cAlgo.API

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 using cAlgo.API;
 namespace cAlgo
 {
     // このサンプルは、VerticalAlignment の使用方法を示しています
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class VerticalAlignmentSample : Indicator
     {
         [Parameter("垂直配置", DefaultValue = VerticalAlignment.Center)]
         public VerticalAlignment VerticalAlignment { get; set; }
         protected override void Initialize()
         {
             var textBlock = new TextBlock
             {
                 Text = string.Format("Alignment: {0}", VerticalAlignment),
                 VerticalAlignment = VerticalAlignment,
                 HorizontalAlignment = HorizontalAlignment.Center
             };
             Chart.AddControl(textBlock);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

関連項目

  • cAlgo.API.ChartVerticalLine

フィールド

Center

概要

中央の垂直配置。

シグネチャ

1
public static VerticalAlignment Center;

 

戻り値

VerticalAlignment

Top

概要

上部の垂直配置。

シグネチャ

1
public static VerticalAlignment Top;

 

戻り値

VerticalAlignment

Bottom

概要

下部の垂直配置。

シグネチャ

1
public static VerticalAlignment Bottom;

 

戻り値

VerticalAlignment

Stretch

概要

ストレッチの垂直配置。

シグネチャ

1
public static VerticalAlignment Stretch;

 

戻り値

VerticalAlignment

目次

このページについて