MESCIUS SPREAD for Windows Forms 17.0J
Priority プロパティ (ConditionalFormattingRule)

優先度を取得または設定します。
構文
'Declaration
 
Public Property Priority As Integer
public int Priority {get; set;}

プロパティ値

優先度。
次のサンプルコードは、Priorityプロパティを設定します。
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
参照

ConditionalFormattingRule クラス
ConditionalFormattingRule メンバ

 

 


© MESCIUS inc. All rights reserved.