[]
Gets the maximum width of the specified viewport column.
public int GetViewportPreferredWidth(int columnViewportIndex)
Public Function GetViewportPreferredWidth(columnViewportIndex As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| int | columnViewportIndex | Column index of viewport |
| Type | Description |
|---|---|
| int | The maximum width of the viewport column for the active sheet. |
Gets the maximum width of the specified 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 | Column index of viewport |
| Type | Description |
|---|---|
| int | The maximum width of the viewport column for the specified sheet. |
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and the total number of sheets |