GrapeCity.Xaml.SpreadSheet.Data
NextNonEmptyColumn(Int32,SheetArea) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > NextNonEmptyColumn Method : NextNonEmptyColumn(Int32,SheetArea) Method
The column from which the next nonempty column is to be returned.
The sheet area.
Returns the next nonempty column index for the specified column.
Syntax
'Declaration
 
Public Overloads Function NextNonEmptyColumn( _
   ByVal column As Integer, _
   ByVal sheetArea As SheetArea _
) As Integer
'Usage
 
Dim instance As Worksheet
Dim column As Integer
Dim sheetArea As SheetArea
Dim value As Integer
 
value = instance.NextNonEmptyColumn(column, sheetArea)
public int NextNonEmptyColumn( 
   int column,
   SheetArea sheetArea
)

Parameters

column
The column from which the next nonempty column is to be returned.
sheetArea
The sheet area.

Return Value

The next nonempty column index.
Example
This example uses the NextNonEmptyColumn method.
gcSpreadSheet1.Sheets[0].Columns[2].IsVisible = false;

int j = 0;           
 while (!(j == -1))
 {
     j = gcSpreadSheet1.Sheets[0].NextNonEmptyColumn(j, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells);
     listBox1.Items.Add(j.ToString());
 }
GcSpreadSheet1.Sheets(0).Columns(2).IsVisible = False

Dim j As Integer
j = 0
Do Until j = -1
    j = GcSpreadSheet1.Sheets(0).NextNonEmptyColumn(j, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
    ListBox1.Items.Add(j.ToString())
Loop
See Also

Reference

Worksheet Class
Worksheet Members
Overload List