フォントスタイル

cBots (自動売買)

概要

テキストに適用されるスタイル情報を指定します。

シグネチャー

1
public enum FontStyle

 

名前空間

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
 using cAlgo.API;
 namespace cAlgo
 {
     // このサンプルは、チャートコントロールのフォントプロパティを使用して、フォントサイズ、スタイル、ファミリーを設定する方法を示しています
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class FontSample : Indicator
     {
         protected override void Initialize()
         {
             var stackPanel = new StackPanel
             {
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
                 BackgroundColor = Color.Gold,
                 Opacity = 0.6
             };
             stackPanel.AddChild(new TextBlock
             {
                 Text = "細いウェイト サイズ 10 フォントスタイル ノーマル フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Thin,
                 FontStyle = FontStyle.Normal,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "細いウェイト サイズ 10 フォントスタイル イタリック フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Thin,
                 FontStyle = FontStyle.Italic,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "細いウェイト サイズ 10 フォントスタイル オブリーク フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Thin,
                 FontStyle = FontStyle.Oblique,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ブラックウェイト サイズ 10 フォントスタイル ノーマル フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Black,
                 FontStyle = FontStyle.Normal,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ボールドウェイト サイズ 10 フォントスタイル ノーマル フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Bold,
                 FontStyle = FontStyle.Normal,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ヘビウェイト サイズ 10 フォントスタイル ノーマル フォント デフォルト",
                 FontSize = 10,
                 FontWeight = FontWeight.Heavy,
                 FontStyle = FontStyle.Normal,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ボールドウェイト サイズ 20 フォントスタイル ノーマル フォント デフォルト",
                 FontSize = 20,
                 FontWeight = FontWeight.Bold,
                 FontStyle = FontStyle.Normal,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ボールドウェイト サイズ 20 フォントスタイル ボールド フォント デフォルト",
                 FontSize = 20,
                 FontWeight = FontWeight.Bold,
                 FontStyle = FontStyle.Bold,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ボールドウェイト サイズ 20 フォントスタイル イタリック フォント デフォルト",
                 FontSize = 20,
                 FontWeight = FontWeight.Bold,
                 FontStyle = FontStyle.Italic,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
             stackPanel.AddChild(new TextBlock
             {
                 Text = "ボールドウェイト サイズ 20 フォントスタイル オブリーク フォント デフォルト",
                 FontSize = 20,
                 FontWeight = FontWeight.Bold,
                 FontStyle = FontStyle.Oblique,
                 ForegroundColor = Color.Black,
                 Margin = 10
             });
         }
     }
 }

 

フィールド

ノーマル

概要

ノーマルなテキスト。

シグネチャ

1
public static FontStyle Normal;

 

戻り値

FontStyle

オブリーク

概要

オブリークなテキスト。

シグネチャ

1
public static FontStyle Oblique;

 

戻り値

FontStyle

イタリック

概要

イタリックなテキスト。

シグネチャ

1
public static FontStyle Italic;

 

戻り値

FontStyle

  • コントロール
目次

このページについて