FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FlatSelectionRenderer Class : FlatSelectionRenderer Constructor |
'Declaration Public Function New()
'Usage 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)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10