[]
Sets the maximum width of the specified viewport column for the active sheet.
public void SetViewportPreferredWidth(int columnViewportIndex, int value)
Public Sub SetViewportPreferredWidth(columnViewportIndex As Integer, value As Integer)
Type | Name | Description |
---|---|---|
int | columnViewportIndex | Column index of viewport |
int | value | Width of the viewport in pixels |
Sets the maximum width of the specified 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 | Column index of viewport |
int | value | Width of the viewport in pixels |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified sheet index is out of range; must be between 0 and the total number of sheets |