GrapeCity.Windows.SpreadSheet.Data Namespace > ConditionalFormat Class : AddTop10Rule Method |
'Declaration Public Function AddTop10Rule( _ ByVal type As Top10ConditionType, _ ByVal rank As System.Integer, _ ByVal style As StyleInfo, _ ByVal ParamArray ranges() As CellRange _ ) As Top10Rule
'Usage Dim instance As ConditionalFormat Dim type As Top10ConditionType Dim rank As System.Integer Dim style As StyleInfo Dim ranges() As CellRange Dim value As Top10Rule value = instance.AddTop10Rule(type, rank, style, ranges)
GcSpreadSheet1.Sheets[0].SetValue(0, 0, 1); GcSpreadSheet1.Sheets[0].SetValue(1, 0, 50); GcSpreadSheet1.Sheets[0].SetValue(2, 0, 11); GcSpreadSheet1.Sheets[0].SetValue(3, 0, 5); var style2 = new GrapeCity.Windows.SpreadSheet.Data.StyleInfo(); style2.Background = new SolidColorBrush(Colors.Yellow); GcSpreadSheet1.Sheets[0].ConditionalFormats.AddTop10Rule(GrapeCity.Windows.SpreadSheet.Data.Top10ConditionType.Top, 2, style2, new GrapeCity.Windows.SpreadSheet.Data.CellRange[] { new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 5, 1) });
GcSpreadSheet1.Sheets(0).SetValue(0, 0, 1) GcSpreadSheet1.Sheets(0).SetValue(1, 0, 50) GcSpreadSheet1.Sheets(0).SetValue(2, 0, 11) GcSpreadSheet1.Sheets(0).SetValue(3, 0, 5) Dim style2 As New GrapeCity.Windows.SpreadSheet.Data.StyleInfo() style2.Background = new SolidColorBrush(Colors.Yellow) GcSpreadSheet1.Sheets(0).ConditionalFormats.AddTop10Rule(GrapeCity.Windows.SpreadSheet.Data.Top10ConditionType.Top, 2, style2, New GrapeCity.Windows.SpreadSheet.Data.CellRange() { New GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 5, 1) })
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6