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


エディタがイベントを発生させたセルを含むビューを取得します。
構文
'Declaration
 
Public ReadOnly Property View As SpreadView
'使用法
 
Dim instance As EditErrorEventArgs
Dim value As SpreadView
 
value = instance.View
public SpreadView View {get;}

プロパティ値

ビューを含むSpreadViewオブジェクト
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.