[]
Sets the maximum width for the viewport column.
public void SetViewportPreferredWidth(int columnViewportIndex, int value)
Public Sub SetViewportPreferredWidth(columnViewportIndex As Integer, value As Integer)
Type | Name | Description |
---|---|---|
int | columnViewportIndex | Viewport column index |
int | value | Width in pixels |
Sets the maximum width for the viewport column for the specified sheet.
public void SetViewportPreferredWidth(int sheetIndex, int columnViewportIndex, int value)
Public Sub SetViewportPreferredWidth(sheetIndex As Integer, columnViewportIndex As Integer, value As Integer)
Type | Name | Description |
---|---|---|
int | sheetIndex | Sheet index |
int | columnViewportIndex | Viewport column index |
int | value | Width in pixels |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified sheet index is not valid; must be between 0 and total number of sheets. |