[]
Gets the width of the specified viewport column for the active sheet.
public int GetViewportWidth(int columnViewportIndex, bool includeGrayArea = true)
Public Function GetViewportWidth(columnViewportIndex As Integer, Optional includeGrayArea As Boolean = True) As Integer
Type | Description |
---|---|
int |
Gets the width of the specified viewport column of the specified sheet.
public int GetViewportWidth(int sheetIndex, int columnViewportIndex)
Public Function GetViewportWidth(sheetIndex As Integer, columnViewportIndex As Integer) As Integer
Type | Name | Description |
---|---|---|
int | sheetIndex | Index of the sheet |
int | columnViewportIndex | Index of the viewport column |
Type | Description |
---|---|
int |
Type | Condition |
---|---|
ArgumentOutOfRangeException | Specified sheet index is not valid; must be between zero and the number of sheets. |