Spread Windows Forms 7.0 Product Documentation
ColumnSpan Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Cell Class : ColumnSpan Property


Glossary Item Box

Gets or sets the number of columns spanned by this cell.

Syntax

Visual Basic (Declaration) 
Public Property ColumnSpan As Integer
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As Integer
 
instance.ColumnSpan = value
 
value = instance.ColumnSpan
C# 
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.
C#Copy Code
FarPoint.Win.Spread.Cell acell;
acell = fpSpread1.ActiveSheet.Cells[0, 0];
acell.ColumnSpan = 3;
acell.RowSpan = 3;
acell.Text = "Span";
Visual BasicCopy Code
Dim acell As FarPoint.Win.Spread.Cell
acell = FpSpread1.ActiveSheet.Cells(0, 0)
acell.ColumnSpan = 3
acell.RowSpan = 3
acell.Text = "Span"

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.