Spread WPF 14
GrapeCity.Windows.SpreadSheet.UI Namespace / LeaveCellEventArgs Class / Column Property
Example


In This Topic
    Column Property (LeaveCellEventArgs)
    In This Topic
    Gets the column index of the cell being left.
    Syntax
    'Declaration
     
    Public ReadOnly Property Column As Integer
    'Usage
     
    Dim instance As LeaveCellEventArgs
    Dim value As Integer
     
    value = instance.Column
    public int Column {get;}

    Property Value

    The column index of the cell being left.
    Example
    This example uses the Column property.
    private void gcSpreadSheet1_InvalidOperation(object sender, GrapeCity.Windows.SpreadSheet.UI.InvalidOperationEventArgs e)
            {
                listBox1.Items.Add(e.Message.ToString());
            }
    
    private void gcSpreadSheet1_LeaveCell(object sender, GrapeCity.Windows.SpreadSheet.UI.LeaveCellEventArgs e)
            {
                listBox1.Items.Add(e.Column.ToString());
                listBox1.Items.Add(e.Row.ToString());
            }
    Private Sub GcSpreadSheet1_InvalidOperation(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.InvalidOperationEventArgs) Handles GcSpreadSheet1.InvalidOperation
            ListBox1.Items.Add(e.Message.ToString())
        End Sub
    
    Private Sub GcSpreadSheet1_LeaveCell(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.LeaveCellEventArgs) Handles GcSpreadSheet1.LeaveCell
            ListBox1.Items.Add(e.Column.ToString())
            ListBox1.Items.Add(e.Row.ToString())
        End Sub
    See Also