MESCIUS SPREAD for Windows Forms 15.0J
DoubleLineBorder コンストラクタ(Color,Boolean,Boolean,Boolean,Boolean)
使用例 

二重境界線の色
左辺に描画するかどうか
上辺に描画するかどうか
右辺に描画するかどうか
下辺に描画するかどうか
色と描画する辺を指定して二重境界線を 作成します。
構文
'宣言
 
Public Function New( _
   ByVal color As Color, _
   ByVal left As Boolean, _
   ByVal top As Boolean, _
   ByVal right As Boolean, _
   ByVal bottom As Boolean _
)
public DoubleLineBorder( 
   Color color,
   bool left,
   bool top,
   bool right,
   bool bottom
)

パラメータ

color
二重境界線の色
left
左辺に描画するかどうか
top
上辺に描画するかどうか
right
右辺に描画するかどうか
bottom
下辺に描画するかどうか
使用例
次のサンプルコードは、二重境界線の太さを返します。
FarPoint.Win.DoubleLineBorder dbl = new FarPoint.Win.DoubleLineBorder(Color.Yellow, true, false, true, false);
int i = dbl.Thickness;
MessageBox.Show("The thickness of the border is " + i.ToString() + " pixels.");
Dim dbl As New FarPoint.Win.DoubleLineBorder(Color.Yellow, True, False, True, False)
Dim i As Integer = dbl.Thickness
MessageBox.Show("The thickness of the border is " + i.ToString() + " pixels.")
参照

DoubleLineBorder クラス
DoubleLineBorder メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.