MESCIUS SPREAD for Windows Forms 15.0J
UseVisualStyleBackColor プロパティ (ButtonCellType)
使用例 

ビジュアルスタイル設定の背景色を使用するかどうかを取得または設定します。
構文
'宣言
 
Public Property UseVisualStyleBackColor As Boolean
public bool UseVisualStyleBackColor {get; set;}
使用例
次のサンプルコードは、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 = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
btn.UseVisualStyleBackColor = false;
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 = System.Drawing2D.LinearGradientMode.ForwardDiagonal
btn.UseVisualStyleBackColor = False
fpSpread1.ActiveSheet.Cells(0, 0).CellType = btn
参照

ButtonCellType クラス
ButtonCellType メンバ

 

 


© MESCIUS inc. All rights reserved.