GrapeCity SPREAD for Windows Forms 11.0J
TrackBarSelectedBackgroundColor プロパティ


選択されているときのトラックバーの背景の色を取得または設定します。
構文
'Declaration
 
Public Property TrackBarSelectedBackgroundColor As Color
'使用法
 
Dim instance As EnhancedScrollBarRenderer
Dim value As Color
 
instance.TrackBarSelectedBackgroundColor = value
 
value = instance.TrackBarSelectedBackgroundColor
public Color TrackBarSelectedBackgroundColor {get; set;}

プロパティ値

選択されているときのトラックバーの背景の色。
次のサンプルコードは、スクロールバーをカスタマイズします。
FarPoint.Win.Spread.EnhancedScrollBarRenderer r = new FarPoint.Win.Spread.EnhancedScrollBarRenderer();
r.ArrowColor = Color.Red;
r.ArrowHoveredColor = Color.Orange;
r.ArrowSelectedColor = Color.DarkRed;
r.ButtonBackgroundColor = Color.Crimson;
r.ButtonBorderColor = Color.Azure;
r.ButtonHoveredBackgroundColor = Color.DarkSalmon;
r.ButtonHoveredBorderColor = Color.Tomato;
r.ButtonSelectedBackgroundColor = Color.Thistle;
r.ButtonSelectedBorderColor = Color.Tomato;
r.TrackBarBackgroundColor = Color.White;
r.TrackBarSelectedBackgroundColor = Color.IndianRed;
FarPoint.Win.Spread.SpreadSkin SpreadSkin = new FarPoint.Win.Spread.SpreadSkin(fpSpread1.Skin);
SpreadSkin.ScrollBarRenderer = r;
SpreadSkin.Apply(fpSpread1);
Dim r As New FarPoint.Win.Spread.EnhancedScrollBarRenderer
r.ArrowColor = Color.Red
r.ArrowHoveredColor = Color.Orange
r.ArrowSelectedColor = Color.DarkRed
r.ButtonBackgroundColor = Color.Crimson
r.ButtonBorderColor = Color.Azure
r.ButtonHoveredBackgroundColor = Color.DarkSalmon
r.ButtonHoveredBorderColor = Color.Tomato
r.ButtonSelectedBackgroundColor = Color.Thistle
r.ButtonSelectedBorderColor = Color.Tomato
r.TrackBarBackgroundColor = Color.White
r.TrackBarSelectedBackgroundColor = Color.IndianRed
Dim SpreadSkin = New FarPoint.Win.Spread.SpreadSkin(FpSpread1.Skin)
SpreadSkin.ScrollBarRenderer = r
SpreadSkin.Apply(FpSpread1)
参照

EnhancedScrollBarRenderer クラス
EnhancedScrollBarRenderer メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.