Spread Windows Forms 12.0 Product Documentation
FlatSelectionRenderer Constructor
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FlatSelectionRenderer Class : FlatSelectionRenderer Constructor
Creates an instance of FlatSelectionRenderer object.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New FlatSelectionRenderer()
public FlatSelectionRenderer()
Example
This example creates new renderers and applies the style.
//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)
See Also

Reference

FlatSelectionRenderer Class
FlatSelectionRenderer Members