Spread Windows Forms 7.0 Product Documentation
Priority Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > ConditionalFormattingRule Class : Priority Property


Glossary Item Box

Gets or sets the priority.

Syntax

Visual Basic (Declaration) 
Public Property Priority As Integer
Visual Basic (Usage)Copy Code
Dim instance As ConditionalFormattingRule
Dim value As Integer
 
instance.Priority = value
 
value = instance.Priority
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.NETCopy 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.