FarPoint.Web.Spread 名前空間 > FpSpread クラス : Unchanged フィールド |
private void FpSpread1UpdateCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e) { int colcnt; int i; string strvalue; colcnt = e.EditValues.Count - 1 for (i = 0; i <= colcnt; i++) { if(!object.ReferenceEquals(e.EditValues[i], FarPoint.Web.Spread.FpSpread.Unchanged) { strvalue = e.EditValues[i]; } } }
Private Sub FpSpread1UpdateCommand(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles FpSpread1.UpdateCommand Dim colcnt As Integer, i As Integer, strvalue As String colcnt = e.EditValues.Count - 1 For i = 0 To colcnt If Not Object.ReferenceEquals(e.EditValues.Item(i), FarPoint.Web.Spread.FpSpread.Unchanged) Then strvalue = e.EditValues.Item(i) End If Next End Sub
これは、スタティック定数オブジェクトです。これを使用して、セルの変数値が変更されたかどうかをチェックできます