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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ConditionalFormattingRule Class
ConditionalFormattingRule Members

 

 


Copyright © GrapeCity, inc. All rights reserved.