Spread WPF Documentation
NextNonEmptyColumn(Int32) Method
Example 


The column from which the next nonempty column is to be returned.
Returns the next nonempty column index for the specified column.
Syntax
'Declaration
 
Public Overloads Function NextNonEmptyColumn( _
   ByVal column As System.Integer _
) As System.Integer
'Usage
 
Dim instance As Worksheet
Dim column As System.Integer
Dim value As System.Integer
 
value = instance.NextNonEmptyColumn(column)
public System.int NextNonEmptyColumn( 
   System.int column
)

Parameters

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

Return Value

The next nonempty column index.
Remarks
The NextNonEmptyColumn method only returns column index values if there is a change to the column axis information such as width, visibility, or resizing information. This method does not check for data in the cell.
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);
    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)
    ListBox1.Items.Add(j.ToString())
Loop
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.