FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > 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)