GrapeCity.Xaml.SpreadSheet.Data Namespace > ConditionalFormat Class : AddTop10Rule Method |
'Declaration Public Function AddTop10Rule( _ ByVal type As Top10ConditionType, _ ByVal rank As Integer, _ ByVal style As StyleInfo, _ ByVal ParamArray ranges() As CellRange _ ) As Top10Rule
'Usage Dim instance As ConditionalFormat Dim type As Top10ConditionType Dim rank As 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.Xaml.SpreadSheet.Data.StyleInfo(); style2.Background = new SolidColorBrush(Windows.UI.Colors.Yellow); GcSpreadSheet1.Sheets[0].ConditionalFormats.AddTop10Rule(GrapeCity.Xaml.SpreadSheet.Data.Top10ConditionType.Top, 2, style2, new GrapeCity.Xaml.SpreadSheet.Data.CellRange[] { new GrapeCity.Xaml.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.Xaml.SpreadSheet.Data.StyleInfo() style2.Background = new SolidColorBrush(Windows.UI.Colors.Yellow) GcSpreadSheet1.Sheets(0).ConditionalFormats.AddTop10Rule(GrapeCity.Xaml.SpreadSheet.Data.Top10ConditionType.Top, 2, style2, New GrapeCity.Xaml.SpreadSheet.Data.CellRange() { New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 5, 1) })
Target Platforms: Windows Server 2012, Windows RT