作成日: 2017/05/01 最終更新日: 2017/05/01
文書種別
使用方法
詳細
条件付き書式を設定で下記のようにセルを絶対参照することにより、特定セルの値により、行全体の書式を変更するように設定することができます。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If IsPostBack Then
Return
End If
Dim frule As New FarPoint.Web.Spread.FormulaConditionalFormattingRule("$A$1>5")
frule.ForeColor = Drawing.Color.White
frule.BackColor = Drawing.Color.Blue
FpSpread1.ActiveSheetView.SetConditionalFormatting(0, -1, frule)
End Sub
If IsPostBack Then
Return
End If
Dim frule As New FarPoint.Web.Spread.FormulaConditionalFormattingRule("$A$1>5")
frule.ForeColor = Drawing.Color.White
frule.BackColor = Drawing.Color.Blue
FpSpread1.ActiveSheetView.SetConditionalFormatting(0, -1, frule)
End Sub
◎サンプルコード(C#)
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.FormulaConditionalFormattingRule frule = new FarPoint.Web.Spread.FormulaConditionalFormattingRule("$A$1>5");
frule.ForeColor = System.Drawing.Color.White;
frule.BackColor = System.Drawing.Color.Blue;
FpSpread1.ActiveSheetView.SetConditionalFormatting(0, -1, frule);
}
{
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.FormulaConditionalFormattingRule frule = new FarPoint.Web.Spread.FormulaConditionalFormattingRule("$A$1>5");
frule.ForeColor = System.Drawing.Color.White;
frule.BackColor = System.Drawing.Color.Blue;
FpSpread1.ActiveSheetView.SetConditionalFormatting(0, -1, frule);
}
旧文書番号
40329