GrapeCity SPREAD for Windows Forms 11.0J
RowIndex プロパティ (CellErrorTextChangedEventArgs)


行インデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property RowIndex As Integer
'使用法
 
Dim instance As CellErrorTextChangedEventArgs
Dim value As Integer
 
value = instance.RowIndex
public int RowIndex {get;}
次のサンプルコードは、行インデックスを取得します。
fpSpread1.ShowCellErrors = true;
fpSpread1.Sheets[0].Cells[1, 1].Locked = true;
fpSpread1.Sheets[0].SetCellErrorText(1, 1, "ErrorText");


private void fpSpread1_CellErrorTextChanged(object sender, FarPoint.Win.Spread.CellErrorTextChangedEventArgs e)
        {
            listBox1.Items.Add(e.RowIndex);
        }
FpSpread1.ShowCellErrors = True
FpSpread1.Sheets(0).Cells(1, 1).Locked = True
FpSpread1.Sheets(0).SetCellErrorText(1, 1, "ErrorText")


Private Sub FpSpread1_CellErrorTextChanged(sender As Object, e As FarPoint.Win.Spread.CellErrorTextChangedEventArgs) Handles FpSpread1.CellErrorTextChanged
        listBox1.Items.Add(e.RowIndex)
    End Sub
参照

CellErrorTextChangedEventArgs クラス
CellErrorTextChangedEventArgs メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.