[]
Sets the active viewport for the active sheet.
public void SetActiveViewport(int rowViewportIndex, int columnViewportIndex)
Public Sub SetActiveViewport(rowViewportIndex As Integer, columnViewportIndex As Integer)
| Type | Name | Description |
|---|---|---|
| int | rowViewportIndex | Viewport row index |
| int | columnViewportIndex | Viewport column index |
Sets the active viewport for the specified sheet.
public void SetActiveViewport(int sheetIndex, int rowViewportIndex, int columnViewportIndex)
Public Sub SetActiveViewport(sheetIndex As Integer, rowViewportIndex As Integer, columnViewportIndex As Integer)
| Type | Name | Description |
|---|---|---|
| int | sheetIndex | Sheet index |
| int | rowViewportIndex | Viewport row index |
| int | columnViewportIndex | Viewport column index |
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and the total number of sheets |