| Visual Basic (Declaration) | |
|---|---|
Public Overloads Sub SetViewportPreferredWidth( _ ByVal sheetIndex As Integer, _ ByVal columnViewportIndex As Integer, _ ByVal value As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public void SetViewportPreferredWidth( int sheetIndex, int columnViewportIndex, int value ) | |
Parameters
- sheetIndex
- Sheet index
- columnViewportIndex
- Column index of viewport
- value
- Width of the viewport in pixels
| Exception | Description |
|---|---|
| ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and total number of sheets |
| C# | Copy Code |
|---|---|
fpSpread1.Sheets.Count = 3; | |
| Visual Basic | Copy Code |
|---|---|
FpSpread1.Sheets.Count = 3 | |
The sheet index is zero-based, so the first sheet has an index of 0.
The viewport column index is zero-based, so the first (leftmost) viewport column has an index of 0.