|Visual Basic (Declaration)|
Public Enum VerticalPosition Inherits Enum
|Visual Basic (Usage)||Copy Code|
public enum VerticalPosition : Enum
|Top||Positions the cell or row to the top|
|Center||Positions the cell or row in the center|
|Bottom||Positions the cell or row to the bottom|
|Nearest||Positions the cell or row to the nearest edge|
|Visual Basic||Copy Code|
For horizontal position of the cell or column, refer to the HorizontalPosition enumeration.
When using methods in FpSpread or SheetView class to move the cell into the display, if the specified cell is already visible, then the Nearest parameter does nothing If the specified cell is not visible then the sheet is scrolled just enough to make the specified cell visible. For example, setting the ActiveRowIndex and ActiveColumnIndex properties scrolls the sheet. Setting the active cell to a cell that is outside the displayed area scrolls the cell into view. Setting the active cell to a cell already in the view does nothing since the cell is already visible. The Nearest parameter only changes or moves the cells in the display if the specified cell is not displayed.