チャート静的テキスト

概要

チャートの静的テキストを表します。

署名

1
public abstract interface ChartStaticText

 

名前空間

cAlgo.API

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 using cAlgo.API;
 using System.Text;
 namespace cAlgo
 {
     // このサンプルは、Chart.DrawStaticText メソッドを使用して、チャートに静的ロックされたテキストを描画する方法を示しています
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartStaticTextSample : Indicator
     {
         protected override void Initialize()
         {
             var stringBuilder = new StringBuilder();
             stringBuilder.AppendLine("Symbol: " + SymbolName);
             stringBuilder.AppendLine("TimeFrame: " + TimeFrame);
             stringBuilder.AppendLine("Chart Type: " + Chart.ChartType);
             Chart.DrawStaticText("Static_Sample", stringBuilder.ToString(), VerticalAlignment.Bottom, HorizontalAlignment.Left, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

プロパティ

Color

概要

チャートの静的テキストの色を取得または設定します。

署名

1
public abstract Color Color {get; set;}

 

戻り値

Color

Text

概要

チャートの静的テキストの内容を取得または設定します。

署名

1
public abstract string Text {get; set;}

 

戻り値

string

VerticalAlignment

概要

チャートの静的テキストの縦方向の配置を取得または設定します。

署名

1
public abstract VerticalAlignment VerticalAlignment {get; set;}

 

戻り値

VerticalAlignment

HorizontalAlignment

概要

チャートの静的テキストの横方向の配置を取得または設定します。

署名

1
public abstract HorizontalAlignment HorizontalAlignment {get; set;}

 

戻り値

HorizontalAlignment

  • チャートオブジェクト/描画
目次

このページについて