PowerTools SPREAD for Windows Forms 8.0J
ButtonColor2 プロパティ


グラデーション ボタンの描画時に使用される2番目の色を取得または設定します。
構文
'Declaration
 
Public Property ButtonColor2 As Color
'使用法
 
Dim instance As ButtonCellType
Dim value As Color
 
instance.ButtonColor2 = value
 
value = instance.ButtonColor2
public Color ButtonColor2 {get; set;}

プロパティ値

ボタンのグラデーションの2番目の色を含む Color オブジェクト
解説
異なるボタン色を表示するには、UseVisualStyleBackColorプロパティをfalseに設定します。
次のサンプルコードは、ボタンの色を設定します。
FarPoint.Win.Spread.CellType.ButtonCellType btn = new
FarPoint.Win.Spread.CellType.ButtonCellType();
btn.BackgroundStyle = FarPoint.Win.BackStyle.Gradient;
btn.ButtonColor = Color.Yellow;
btn.ButtonColor2 = Color.Orange;
btn.GradientMode = Drawing2D.LinearGradientMode.ForwardDiagonal;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = btn;
Dim btn As New FarPoint.Win.Spread.CellType.ButtonCellType
btn.BackgroundStyle = FarPoint.Win.BackStyle.Gradient
btn.ButtonColor = Color.Yellow
btn.ButtonColor2 = Color.Orange
btn.GradientMode = Drawing2D.LinearGradientMode.ForwardDiagonal

FpSpread1.ActiveSheet.Cells(0, 0).CellType = btn
参照

ButtonCellType クラス
ButtonCellType メンバ

 

 


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