PowerTools SPREAD for Windows Forms 8.0J
UseVisualStyleBackColor プロパティ (ButtonCellType)


ビジュアルスタイル設定の背景色を使用するかどうかを取得または設定します。
構文
'Declaration
 
Public Property UseVisualStyleBackColor As Boolean
'使用法
 
Dim instance As ButtonCellType
Dim value As Boolean
 
instance.UseVisualStyleBackColor = value
 
value = instance.UseVisualStyleBackColor
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 メンバ

 

 


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