PowerTools SPREAD for Windows Forms 10.0J
FlatSelectionRenderer コンストラクタ


FlatSelectionRendererオブジェクトのインスタンスを作成します。
構文
'Declaration
 
Public Function New()
'使用法
 
Dim instance As New FlatSelectionRenderer()
public FlatSelectionRenderer()
次のサンプルコードは、新しいレンダラーを作成してスタイルを適用します。
//Create skin from classic
FarPoint.Win.Spread.SpreadSkin skin = new FarPoint.Win.Spread.SpreadSkin(FarPoint.Win.Spread.DefaultSpreadSkins.Classic);
//skin using flat selection style
skin.SelectionRenderer = new FarPoint.Win.Spread.FlatSelectionRenderer();
//skin using old Excel 2007 column style
FarPoint.Win.Spread.StyleInfo info = new FarPoint.Win.Spread.StyleInfo();
info.Renderer = new FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer();
skin.ColumnHeaderDefaultStyle = new FarPoint.Win.Spread.NamedStyle("columnStyle", null, info);
//apply skin to spread
skin.Apply(fpSpread1);
'Create skin from classic
Dim skin As New FarPoint.Win.Spread.SpreadSkin(FarPoint.Win.Spread.DefaultSpreadSkins.Classic)
'skin using flat selection style
skin.SelectionRenderer = New FarPoint.Win.Spread.FlatSelectionRenderer()
'skin using old Excel 2007 column style
Dim info As New FarPoint.Win.Spread.StyleInfo()
info.Renderer = New FarPoint.Win.Spread.CellType.EnhancedColumnHeaderRenderer()
skin.ColumnHeaderDefaultStyle = New FarPoint.Win.Spread.NamedStyle("columnStyle", Nothing, info)
'apply skin to spread
skin.Apply(FpSpread1)
参照

FlatSelectionRenderer クラス
FlatSelectionRenderer メンバ

 

 


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