Gets the rectangle of the cell.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
Dim row As Integer
Dim column As Integer
Dim value As Rectangle
value = instance.GetCellRectangle(rowViewportIndex, columnViewportIndex, row, column) |
Parameters
- rowViewportIndex
- Index of the row of the viewport
- columnViewportIndex
- Index of the column of the viewport
- row
- Row index of the cell
- column
- Column index of the cell
Return Value
Rectangle object containing the size and location of the rectangle of the cell
Remarks
Example
This example returns the rectangle of the cell.
C# | Copy Code |
---|
Rectangle r
r = fpSpread1.GetCellRectangle(0, 0, 2, 2);
MessageBox.Show(r.Left.ToString());
|
Visual Basic | Copy Code |
---|
Dim r As Rectangle
r = FpSpread1.GetCellRectangle(0, 0, 2, 2)
MessageBox.Show(r.Left.ToString()) |
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