MESCIUS SPREAD for Windows Forms 17.0J
FlatSelectionRenderer コンストラクタ

FlatSelectionRenderer オブジェクトのインスタンスを作成します。
構文
'Declaration
 
Public Function New()
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 メンバ

 

 


© MESCIUS inc. All rights reserved.