Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / CellErrorTextChangedEventArgs Class / ColumnIndex Property
Example


In This Topic
    ColumnIndex Property (CellErrorTextChangedEventArgs)
    In This Topic
    Gets the column index.
    Syntax
    'Declaration
     
    Public ReadOnly Property ColumnIndex As Integer
    'Usage
     
    Dim instance As CellErrorTextChangedEventArgs
    Dim value As Integer
     
    value = instance.ColumnIndex
    public int ColumnIndex {get;}
    Example
    This example gets the column index.
    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.ColumnIndex);
            }
    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.ColumnIndex)
        End Sub
    See Also