Gets or sets the priority.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Priority As Integer |
C# | |
---|
public int Priority {get; set;} |
Property Value
The priority.
Example
This example sets the Priority property.
C# | Copy Code |
---|
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; |
VB.NET | Copy Code |
---|
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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also