Spread WPF Documentation
MinimumType Property (TwoColorScaleRule)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > TwoColorScaleRule Class : MinimumType Property
Gets or sets the type of minimum scale.
Syntax
'Declaration
 
Public Property MinimumType As ScaleValueType
'Usage
 
Dim instance As TwoColorScaleRule
Dim value As ScaleValueType
 
instance.MinimumType = value
 
value = instance.MinimumType
public ScaleValueType MinimumType {get; set;}
Example
This example creates a two color scale rule.
GcSpreadSheet1.Sheets[0].Cells[0, 0].Value = -1;
GcSpreadSheet1.Sheets[0].Cells[1, 0].Value = 49;
GcSpreadSheet1.Sheets[0].Cells[2, 0].Value = 101;
GrapeCity.Windows.SpreadSheet.Data.TwoColorScaleRule rule = new GrapeCity.Windows.SpreadSheet.Data.TwoColorScaleRule();
rule.MinimumColor = Colors.Yellow;
rule.MinimumType = GrapeCity.Windows.SpreadSheet.Data.ScaleValueType.Number;
rule.MinimumValue = 1;
rule.MaximumColor = Colors.Red;
rule.MaximumType = GrapeCity.Windows.SpreadSheet.Data.ScaleValueType.Number;
rule.MaximumValue = 100;
rule.Ranges = new GrapeCity.Windows.SpreadSheet.Data.CellRange[] { new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 20, 1) };
GcSpreadSheet1.Sheets[0].ConditionalFormats.AddRule(rule);
GcSpreadSheet1.Sheets(0).Cells(0, 0).Value = -1
GcSpreadSheet1.Sheets(0).Cells(1, 0).Value = 49
GcSpreadSheet1.Sheets(0).Cells(2, 0).Value = 101
Dim rule as new GrapeCity.Windows.SpreadSheet.Data.TwoColorScaleRule()
rule.MinimumColor = Colors.Yellow
rule.MinimumType = GrapeCity.Windows.SpreadSheet.Data.ScaleValueType.Number
rule.MinimumValue = 1
rule.MaximumColor = Colors.Red
rule.MaximumType = GrapeCity.Windows.SpreadSheet.Data.ScaleValueType.Number
rule.MaximumValue = 100
rule.Ranges = New GrapeCity.Windows.SpreadSheet.Data.CellRange() { New GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 20, 1) }
GcSpreadSheet1.Sheets(0).ConditionalFormats.AddRule(rule)
See Also

Reference

TwoColorScaleRule Class
TwoColorScaleRule Members