現在フォーカスがあるSheet上のセルの背景色を変える方法はありますか?
対象製品
El Tabelle Sheet 4.0J
詳細
LeaveCellイベント内で、前のセルの背景色をクリアし次のセルの背景色を設定します。
[Visual Basic]
[C#]
[Visual Basic]
Private Sub Sheet1_LeaveCell(ByVal sender As Object, ByVal e As GrapeCity.Win.ElTabelle.LeaveCellEventArgs) Handles Sheet1.LeaveCell
Sheet1.ActiveCell.BackColor = Color.Empty
Sheet1(e.NewPosition.Column, e.NewPosition.Row).BackColor = Color.Aqua
End Sub
Sheet1.ActiveCell.BackColor = Color.Empty
Sheet1(e.NewPosition.Column, e.NewPosition.Row).BackColor = Color.Aqua
End Sub
[C#]
private void sheet1_LeaveCell(object sender, LeaveCellEventArgs e)
{
sheet1.ActiveCell.BackColor = Color.Empty;
sheet1[e.NewPosition.Column, e.NewPosition.Row].BackColor = Color.Aqua;
}
{
sheet1.ActiveCell.BackColor = Color.Empty;
sheet1[e.NewPosition.Column, e.NewPosition.Row].BackColor = Color.Aqua;
}
関連情報
- 現在フォーカスがある行だけの背景色を変える方法はありますか?
- 現在フォーカスがあるMultiRowSheet上のセルの背景色を変える方法はありますか?
- 現在フォーカスがあるマルチ行だけの背景色を変える方法はありますか?
この文書は、以前は次のFAQ IDで公開されていました : 9826