Spread Windows Forms 11.0 Product Documentation
ColumnSpan Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cell Class : ColumnSpan Property
Gets or sets the number of columns spanned by this cell.
Syntax
'Declaration
 
Public Property ColumnSpan As Integer
'Usage
 
Dim instance As Cell
Dim value As Integer
 
instance.ColumnSpan = value
 
value = instance.ColumnSpan
public int ColumnSpan {get; set;}

Property Value

Integer number of columns spanned
Remarks

If this cell represents a span, then the upper left cell in the spanned range is returned or set.

Example
This example sets up a cell span over three columns and three rows.
FarPoint.Win.Spread.Cell acell;
acell = fpSpread1.ActiveSheet.Cells[0, 0];
acell.ColumnSpan = 3;
acell.RowSpan = 3;
acell.Text = "Span";
Dim acell As FarPoint.Win.Spread.Cell
acell = fpSpread1.ActiveSheet.Cells(0, 0)
acell.ColumnSpan = 3
acell.RowSpan = 3
acell.Text = "Span"
See Also

Reference

Cell Class
Cell Members