[]
Gets the maximum width for the viewport column.
public int GetViewportPreferredWidth(int columnViewportIndex)
Public Function GetViewportPreferredWidth(columnViewportIndex As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| int | columnViewportIndex |
| Type | Description |
|---|---|
| int | The maximum width for the viewport column. |
Gets the maximum width for the viewport column for the specified sheet.
public int GetViewportPreferredWidth(int sheetIndex, int columnViewportIndex)
Public Function GetViewportPreferredWidth(sheetIndex As Integer, columnViewportIndex As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| int | sheetIndex | Sheet index |
| int | columnViewportIndex | Viewport column index |
| Type | Description |
|---|---|
| int | The maximum width for the viewport column. |
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Specified sheet index is not valid; must be between 0 and total number of sheets. |