PowerTools SPREAD for Windows Forms 8.0J
LineBorder コンストラクタ(Color,Int32,Boolean,Boolean,Boolean,Boolean)


境界線の色
境界線の太さ(ピクセル単位)
セルの左辺に線を描画するかどうかを取得します。
セルの上辺に線を描画するかどうかを取得します。
セルの右辺に線を描画するかどうかを取得します。
セルの下辺に線を描画するかどうかを取得します。
指定した色と幅で、指定した辺の一重境界線を作成します。
構文
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal thickness As Integer, _
   ByVal left As Boolean, _
   ByVal top As Boolean, _
   ByVal right As Boolean, _
   ByVal bottom As Boolean _
)
'使用法
 
Dim color As Color
Dim thickness As Integer
Dim left As Boolean
Dim top As Boolean
Dim right As Boolean
Dim bottom As Boolean
 
Dim instance As New LineBorder(color, thickness, left, top, right, bottom)
public LineBorder( 
   Color color,
   int thickness,
   bool left,
   bool top,
   bool right,
   bool bottom
)

パラメータ

color
境界線の色
thickness
境界線の太さ(ピクセル単位)
left
セルの左辺に線を描画するかどうかを取得します。
top
セルの上辺に線を描画するかどうかを取得します。
right
セルの右辺に線を描画するかどうかを取得します。
bottom
セルの下辺に線を描画するかどうかを取得します。
次のサンプルコードは、境界線の色を返します。
FarPoint.Win.LineBorder lb = new FarPoint.Win.LineBorder(Color.Red);
Color c = lb.Color
MessageBox.Show("The color of the border is " + c.ToString());
Dim lb As New FarPoint.Win.LineBorder(Color.Red)
Dim c As Color = lb.Color
MessageBox.Show("The color of the border is " + c.ToString())
参照

LineBorder クラス
LineBorder メンバ
オーバーロード一覧
Color プロパティ
Thickness プロパティ
Bottom プロパティ
Left プロパティ
Right プロパティ
Top プロパティ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.