Spread Windows Forms 12.0 Product Documentation
Priority Property (ConditionalFormattingRule)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ConditionalFormattingRule Class : Priority Property
Gets or sets the priority.
Syntax
'Declaration
 
Public Property Priority As Integer
'Usage
 
Dim instance As ConditionalFormattingRule
Dim value As Integer
 
instance.Priority = value
 
value = instance.Priority
public int Priority {get; set;}

Property Value

The priority.
Example
This example sets the Priority property.
FarPoint.Win.Spread.IconSetConditionalFormattingRule rule = new FarPoint.Win.Spread.IconSetConditionalFormattingRule(FarPoint.Win.Spread.ConditionalFormattingIconSetStyle.ThreeFlags);
FarPoint.Win.Spread.ConditionalFormatting cfRule = new FarPoint.Win.Spread.ConditionalFormatting(new FarPoint.Win.Spread.Model.CellRange(0, 1, 5, 1), rule);
fpSpread1.ActiveSheet.Models.ConditionalFormatting.Add(cfRule);
rule.Priority = 1;
FarPoint.Win.Spread.IconSetConditionalFormattingRule rule1 = new FarPoint.Win.Spread.IconSetConditionalFormattingRule(FarPoint.Win.Spread.ConditionalFormattingIconSetStyle.FiveRatings);
FarPoint.Win.Spread.ConditionalFormatting cfRule1 = new FarPoint.Win.Spread.ConditionalFormatting(new FarPoint.Win.Spread.Model.CellRange(0, 1, 6, 1), rule1);
fpSpread1.ActiveSheet.Models.ConditionalFormatting.Add(cfRule1);
rule1.Priority = 2; 
Dim rule As New FarPoint.Win.Spread.IconSetConditionalFormattingRule(FarPoint.Win.Spread.ConditionalFormattingIconSetStyle.ThreeFlags)
Dim cfRule As New FarPoint.Win.Spread.ConditionalFormatting(New FarPoint.Win.Spread.Model.CellRange(0, 1, 5, 1), rule)
FpSpread1.ActiveSheet.Models.ConditionalFormatting.Add(cfRule)
Rule.Priority = 1
Dim rule1 = New FarPoint.Win.Spread.IconSetConditionalFormattingRule(FarPoint.Win.Spread.ConditionalFormattingIconSetStyle.FiveRatings)
Dim cfRule1 = New FarPoint.Win.Spread.ConditionalFormatting(New FarPoint.Win.Spread.Model.CellRange(0, 1, 6, 1), rule1)
FpSpread1.ActiveSheet.Models.ConditionalFormatting.Add(cfRule1)
rule1.Priority = 2
See Also

Reference

ConditionalFormattingRule Class
ConditionalFormattingRule Members