PowerTools SPREAD for Windows Forms 10.0J
Column プロパティ (EditErrorEventArgs)


エディタがイベントを発生させたセルの列インデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property Column As Integer
'使用法
 
Dim instance As EditErrorEventArgs
Dim value As Integer
 
value = instance.Column
public int Column {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-2017, GrapeCity inc. All rights reserved.