GrapeCity.Xaml.SpreadSheet.Data
ColumnCount Property (Worksheet)
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class : ColumnCount Property
Gets or sets the number of columns in the sheet.
Syntax
'Declaration
 
<DefaultValueAttribute()>
Public Property ColumnCount As Integer
'Usage
 
Dim instance As Worksheet
Dim value As Integer
 
instance.ColumnCount = value
 
value = instance.ColumnCount
[DefaultValue()]
public int ColumnCount {get; set;}

Property Value

The number of columns in the sheet.
Example
This example uses the ColumnCount property.
gcSpreadSheet1.Sheets[0].RowCount = 10;
gcSpreadSheet1.Sheets[0].ColumnCount = 8;
gcSpreadSheet1.Sheets[0].FrozenColumnCount = 1;
gcSpreadSheet1.Sheets[0].FrozenRowCount = 1;
gcSpreadSheet1.Sheets[0].FrozenTrailingColumnCount = 1;
gcSpreadSheet1.Sheets[0].FrozenTrailingRowCount = 1;
GcSpreadSheet1.Sheets(0).RowCount = 10
GcSpreadSheet1.Sheets(0).ColumnCount = 8
GcSpreadSheet1.Sheets(0).FrozenColumnCount = 1
GcSpreadSheet1.Sheets(0).FrozenRowCount = 1
GcSpreadSheet1.Sheets(0).FrozenTrailingColumnCount = 1
GcSpreadSheet1.Sheets(0).FrozenTrailingRowCount = 1
See Also

Reference

Worksheet Class
Worksheet Members