Thickness コンストラクター

定義

Thickness構造体の新しいインスタンスを初期化します。

オーバーロード

名前 説明
Thickness(Double)

各側で指定された均一な長さを持つ Thickness 構造体の新しいインスタンスを初期化します。

Thickness(Double, Double, Double, Double)

四角形の両側に適用される特定の長さ (Thicknessとして指定) を持つDouble構造体の新しいインスタンスを初期化します。

Thickness(Double)

各側で指定された均一な長さを持つ Thickness 構造体の新しいインスタンスを初期化します。

public:
 Thickness(double uniformLength);
public Thickness(double uniformLength);
new System.Windows.Thickness : double -> System.Windows.Thickness
Public Sub New (uniformLength As Double)

パラメーター

uniformLength
Double

外接する四角形の 4 つの辺すべてに適用される均一な長さ。

適用対象

Thickness(Double, Double, Double, Double)

四角形の両側に適用される特定の長さ (Thicknessとして指定) を持つDouble構造体の新しいインスタンスを初期化します。

public:
 Thickness(double left, double top, double right, double bottom);
public Thickness(double left, double top, double right, double bottom);
new System.Windows.Thickness : double * double * double * double -> System.Windows.Thickness
Public Sub New (left As Double, top As Double, right As Double, bottom As Double)

パラメーター

left
Double

四角形の左側の太さ。

top
Double

四角形の上辺の太さ。

right
Double

四角形の右側の太さ。

bottom
Double

四角形の下側の太さ。

次の例は、コードを使用して Thickness 構造体のインスタンスを作成する方法を示しています。

myBorder1 = new Border();
myBorder1.BorderBrush = Brushes.SlateBlue;
myBorder1.BorderThickness = new Thickness(5, 10, 15, 20);
myBorder1.Background = Brushes.AliceBlue;
myBorder1.Padding = new Thickness(5);
myBorder1.CornerRadius = new CornerRadius(15);
Dim myBorder1 As New Border()
myBorder1.BorderBrush = Brushes.SlateBlue
myBorder1.BorderThickness = New Thickness(5, 10, 15, 20)
myBorder1.Background = Brushes.AliceBlue
myBorder1.Padding = New Thickness(5)
myBorder1.CornerRadius = New CornerRadius(15)
<Border BorderBrush="SlateBlue" BorderThickness="5,10,15,20" Background="AliceBlue" Padding="5" CornerRadius="15">

適用対象