Spread Windows Forms 6.0 Product Documentation
GetSpanCell Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetSpanCell Method


row
Row index of the specified cell
column
Column index of the specified cell

Glossary Item Box

Gets the range of cells that are spanned at a specified cell on this sheet.

Syntax

Visual Basic (Declaration) 
Public Overridable Function GetSpanCell( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As CellRange
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As CellRange
 
value = instance.GetSpanCell(row, column)
C# 
public virtual CellRange GetSpanCell( 
   int row,
   int column
)

Parameters

row
Row index of the specified cell
column
Column index of the specified cell

Return Value

CellRange object containing the range of cells included in the span with the specified cell

Example

This example illustrates the use of this member by returning the range of the cell span.
C#Copy Code
fpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2);
FarPoint.Win.Spread.Model.CellRange cr;
cr = fpSpread1.ActiveSheet.GetSPanCell(0, 0);
label1.Text = "The span covers cells " + cr.Row + ", " + cr.Column + ", " + cr.RowCount + ", " + cr.ColumnCount;
Visual BasicCopy Code
Dim cr As FarPoint.Win.Spread.Model.CellRange
FpSpread1.ActiveSheet.AddSpanCell(0, 0, 2, 2)
cr = FpSpread1.ActiveSheet.GetSpanCell(0, 0)
Label1.Text = "The span covers cells " & cr.Row & ", " & cr.Column & ", " & cr.RowCount & ", " & cr.ColumnCount

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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