MESCIUS SPREAD for ASP.NET 10.0J
BorderStyleLeft プロパティ

左罫線のスタイルを取得または設定します。
構文
'Declaration
 
Public Property BorderStyleLeft As BorderStyle
public BorderStyle BorderStyleLeft {get; set;}

プロパティ値

左境界線のBorderStyle設定
解説

これらの境界線スタイルの詳細については、Microsoft .NET FrameworkリファレンスのBorderStyle列挙体を参照してください。

オブジェクトのすべての辺の境界線スタイルを同じスタイルに設定する場合は、BorderStyleプロパティを使用します。

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

次のサンプル コードは、BorderStyleLeft を設定します。
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 メンバ
BorderStyle プロパティ
IsDefined メソッド

 

 


© MESCIUS inc. All rights reserved.