ボーダー

Here is the content translated into Japanese while maintaining the original HTML structure: “`html

概要

境界線を表します。

シグネチャ

1
public class Border : ControlBase

 

名前空間

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
 using cAlgo.API;
 namespace cAlgo
 {
     // Borderチャートコントロールの使用方法を示すサンプルインジケーター
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class BorderSample : Indicator
     {
         protected override void Initialize()
         {
             var border = new Border
             {
                 BorderColor = Color.Yellow,
                 BorderThickness = 2,
                 Opacity = 0.5,
                 BackgroundColor = Color.Violet,
                 HorizontalAlignment = HorizontalAlignment.Right,
                 VerticalAlignment = VerticalAlignment.Bottom,
                 Width = 200,
                 Height = 100,
                 Margin = 10
             };
             var stackPanel = new StackPanel
             {
                 Orientation = Orientation.Vertical
             };
             stackPanel.AddChild(new TextBlock
             {
                 Text = "Text",
                 Margin = 5,
                 HorizontalAlignment = HorizontalAlignment.Center,
                 FontWeight = FontWeight.ExtraBold
             });
             stackPanel.AddChild(new Button
             {
                 Text = "Button",
                 Margin

 = 5,
                 HorizontalAlignment = HorizontalAlignment.Center,
                 FontWeight = FontWeight.ExtraBold
             });
             stackPanel.AddChild(new TextBox
             {
                 Text = "Type text...",
                 Margin = 5,
                 HorizontalAlignment = HorizontalAlignment.Center,
                 FontWeight = FontWeight.ExtraBold,
                 Width = 100
             });
             border.Child = stackPanel;
             Chart.AddControl(border);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

関連項目

  • cAlgo.API.ControlBase

プロパティ

子要素

概要

ボーダーの子オブジェクトを取得または設定します。

シグネチャ

1
public ControlBase Child {get; set;}

 

戻り値

ControlBase

BorderThickness

概要

ボーダーの厚さを取得または設定します。プロパティの値は、Thickness、数値、または文字列で設定できます。例:new Thickness(5), new Thickness(1, 2, 3, 4), 5, “5”, “1 2 3 4”.

シグネチャ

1
public Thickness BorderThickness {get; set;}

 

戻り値

Thickness

Padding

概要

ボーダーのパディング厚さを取得または設定します。プロパティの値は、Thickness、数値、または文字列で設定できます。例:new Thickness(5), new Thickness(1, 2, 3, 4), 5, “5”, “1 2 3 4”.

シグネチャ

1
public Thickness Padding {get; set;}

 

戻り値

Thickness

CornerRadius

概要

ボーダーの角の半径を取得または設定します。プロパティの値は、CornerRadius、数値、または文字列で設定できます。例:new CornerRadius(5), new CornerRadius(1, 2, 3, 4).

シグネチャ

1
public CornerRadius CornerRadius {get; set;}

 

戻り値

CornerRadius

関連チュートリアル

  • コントロール

BorderColor

概要

ボーダーの線の色を取得または設定します。ARGB(アルファ、赤、緑、青)のカラー値についてはColorクラスを参照するか、次の文字列を使用します。Color.Red, Color.FromName(“Red”), Color.FromArgb(255, 0, 0), Color.FromHex(“#ff0000”), “Red”, “#ff0000”.

シグネチャ

1
public Color BorderColor {get; set;}

 

戻り値

Color

BackgroundColor

概要

ボーダーの背景色を取得または設定します。ARGB(アルファ、赤、緑、青)のカラー値についてはColorクラスを参照するか、次の文字列を使用します。Color.Red, Color.FromName(“Red”), Color.FromArgb(255, 0, 0), Color.FromHex(“#ff0000″),”Red”, “#ff0000”.

シグネチャ

1
public Color BackgroundColor {get; set;}

 

戻り値

Color

  • コントロール
目次

このページについて