PowerTools SPREAD for ASP.NET 8.0J
BorderColorTop プロパティ

上罫線の色を取得または設定します。
構文
'Declaration
 
Public Property BorderColorTop As Color
public Color BorderColorTop {get; set;}

プロパティ値

上罫線の色を含むColorオブジェクト
解説

オブジェクトの罫線のすべての辺に同じ色を設定する場合、BorderColorプロパティを使用します。

他の罫線の色プロパティが設定されているかどうかをチェックするには、IsDefinedメソッドを使用します。

この例では、7列50行から成るスプレッドシートを作成します。セルの先頭列を二重罫線のBorderStyleを持つ通貨型セルに設定します。セルの上罫線と左罫線は青色で、それぞれの幅は5ピクセルと8ピクセルです。
FarPoint.Web.Spread.CurrencyCellType currcell = new FarPoint.Web.Spread.CurrencyCellType();
FarPoint.Web.Spread.Border aborder = new FarPoint.Web.Spread.Border();
FarPoint.Web.Spread.StyleInfo currstyle = new FarPoint.Web.Spread.StyleInfo();
FpSpread1.Sheets[0].ColumnCount = 7;
FpSpread1.Sheets[0].RowCount = 50;
currcell.Size = 20;
aborder.BorderColorBottom = Color.Blue;
aborder.BorderColorLeft = Color.Blue;
aborder.BorderSize = 5;
aborder.BorderStyleBottom = BorderStyle.Double;
aborder.BorderStyleLeft = BorderStyle.Double;
aborder.BorderStyleRight = BorderStyle.Groove;
aborder.BorderStyleTop = BorderStyle.Groove;
currstyle.CellType = currcell;
currstyle.Border = aborder;
FpSpread1.Sheets[0].SetStyleInfo(-1, 0, currstyle);
Dim currcell As New FarPoint.Web.Spread.CurrencyCellType()
Dim aborder As New FarPoint.Web.Spread.Border()
Dim currstyle As New FarPoint.Web.Spread.StyleInfo()
FpSpread1.Sheets(0).ColumnCount = 7
FpSpread1.Sheets(0).RowCount = 50
currcell.Size = 20
aborder.BorderColorBottom = Color.Blue
aborder.BorderColorLeft = Color.Blue
aborder.BorderSize = 5
aborder.BorderStyleBottom = BorderStyle.Double
aborder.BorderStyleLeft = BorderStyle.Double
aborder.BorderStyleRight = BorderStyle.Groove
aborder.BorderStyleTop = BorderStyle.Groove
currstyle.CellType = currcell
currstyle.Border = aborder
FpSpread1.Sheets(0).SetStyleInfo(-1, 0, currstyle)
参照

Border クラス
Border メンバ
BorderColor プロパティ
IsDefined メソッド

 

 


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