GrapeCity.Xaml.SpreadSheet.Data Namespace > ThreeColorScaleRule Class : Create Method |
'Declaration Public Shared Function Create( _ ByVal minType As ScaleValueType, _ ByVal minValue As Object, _ ByVal minColor As Color, _ ByVal midType As ScaleValueType, _ ByVal midValue As Object, _ ByVal midColor As Color, _ ByVal maxType As ScaleValueType, _ ByVal maxValue As Object, _ ByVal maxColor As Color _ ) As ThreeColorScaleRule
'Usage Dim minType As ScaleValueType Dim minValue As Object Dim minColor As Color Dim midType As ScaleValueType Dim midValue As Object Dim midColor As Color Dim maxType As ScaleValueType Dim maxValue As Object Dim maxColor As Color Dim value As ThreeColorScaleRule value = ThreeColorScaleRule.Create(minType, minValue, minColor, midType, midValue, midColor, maxType, maxValue, maxColor)
public static ThreeColorScaleRule Create( ScaleValueType minType, object minValue, Color minColor, ScaleValueType midType, object midValue, Color midColor, ScaleValueType maxType, object maxValue, Color maxColor )
var rule = GrapeCity.Xaml.SpreadSheet.Data.ThreeColorScaleRule.Create(GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 1, Windows.UI.Colors.Yellow, GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 50, Windows.UI.Colors.Blue, GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 100, Windows.UI.Colors.Red); rule.Ranges = new GrapeCity.Xaml.SpreadSheet.Data.CellRange[] { new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 20, 1) }; gcSpreadSheet1.Sheets[0].ConditionalFormats.AddRule(rule);
Dim rule = GrapeCity.Xaml.SpreadSheet.Data.ThreeColorScaleRule.Create(GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 1, Windows.UI.Colors.Yellow, GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 50, Windows.UI.Colors.Blue, GrapeCity.Xaml.SpreadSheet.Data.ScaleValueType.Number, 100, Windows.UI.Colors.Red) rule.Ranges = New GrapeCity.Xaml.SpreadSheet.Data.CellRange() {New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 20, 1)} GcSpreadSheet1.Sheets(0).ConditionalFormats.AddRule(rule)
Target Platforms: Windows Server 2012, Windows RT