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


rowViewportIndex
Index of viewport row
columnViewportIndex
Index of viewport column
cellRowIndex
Index of row in that viewport
cellColumnIndex
Index of column in that viewport

Glossary Item Box

Returns whether the cell at the specified location is visible in the specified view.

Syntax

Visual Basic (Declaration) 
Public Function IsCellInView( _
   ByVal rowViewportIndex As Integer, _
   ByVal columnViewportIndex As Integer, _
   ByVal cellRowIndex As Integer, _
   ByVal cellColumnIndex As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
Dim cellRowIndex As Integer
Dim cellColumnIndex As Integer
Dim value As Boolean
 
value = instance.IsCellInView(rowViewportIndex, columnViewportIndex, cellRowIndex, cellColumnIndex)
C# 
public bool IsCellInView( 
   int rowViewportIndex,
   int columnViewportIndex,
   int cellRowIndex,
   int cellColumnIndex
)

Parameters

rowViewportIndex
Index of viewport row
columnViewportIndex
Index of viewport column
cellRowIndex
Index of row in that viewport
cellColumnIndex
Index of column in that viewport

Return Value

true if the cell with specified indexes is visible; false otherwise

Example

This example brings into view the specified cell.
C#Copy Code
bool b;
b = fpSpread1.IsCellInView(0, 0, 20, 4);
if (!b) 
{
      fpSpread1.ShowCell(0, 0, 20, 4, FarPoint.Win.Spread.VerticalPosition.Center, FarPoint.Win.Spread.HorizontalPosition.Center);
}
Visual BasicCopy Code

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.