PowerTools SPREAD for Windows Forms 8.0J
Row プロパティ (EditErrorEventArgs)


エディタがイベントを発生させたセルの行インデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property Row As Integer
'使用法
 
Dim instance As EditErrorEventArgs
Dim value As Integer
 
value = instance.Row
public int Row {get;}

プロパティ値

行のインデックスを表す Integer
private void fpSpread1_EditError(object sender, FarPoint.Win.Spread.EditErrorEventArgs e)
{
    if(e.EditError == FarPoint.Win.Spread.EditError.CellIsLocked)
    {
        e.View.Sheets[0].Cells[e.Row, e.Column].BackColor = Color.Red;
    }
}
Private Sub FpSpread1_EditError(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditErrorEventArgs) Handles FpSpread1.EditError
    If e.EditError = FarPoint.Win.Spread.EditError.CellIsLocked Then
        e.View.Sheets(0).Cells(e.Row, e.Column).BackColor = Color.Red
    End If
End Sub
参照

EditErrorEventArgs クラス
EditErrorEventArgs メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.