Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetViewEventArgs Class / ColumnCount Property
Example


In This Topic
    ColumnCount Property (SheetViewEventArgs)
    In This Topic
    Gets the number of columns.
    Syntax
    'Declaration
     
    Public ReadOnly Property ColumnCount As Integer
    'Usage
     
    Dim instance As SheetViewEventArgs
    Dim value As Integer
     
    value = instance.ColumnCount
    public int ColumnCount {get;}

    Property Value

    Integer number of columns
    Example
    private void fpSpread1_Sheet1_CellChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e)
    {
        MessageBox.Show("Changed " + e.RowCount + " row(s)" + ", " + e.ColumnCount + " column(s)");
    }
    
    Private Sub FpSpread1_Sheet1_CellChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SheetViewEventArgs) Handles
    FpSpread1_Sheet1.CellChanged
        MessageBox.Show("Changed " & e.RowCount & " row" & ", " & e.ColumnCount & " column")
    End Sub
    See Also