Interface AutoFitOptions

interface AutoFitOptions {
    clearCustom?: boolean;
    expandOnly?: boolean;
    fullContent?: boolean;
    oppRunBounds?: RunCoords;
}

Properties

clearCustom?: boolean

Clear any custom sizes

Default Value

true
expandOnly?: boolean

Only autofit values if larger then current size

Default Value

false
fullContent?: boolean

Best fit using all of the content.

Remarks

The full content include all of the text for strings and all of the decimals for numbers. When false the numbers will include as few decimals as allowed overflow into the next cell.

Default Value

false
oppRunBounds?: RunCoords

When scanning to expand the oppRunBounds are used first. If expandOnly is false then these will be treated as a hint. If all of the values returned within this bounds are larger then the current size we will stop measuring.