Share via


CellFormat.ShrinkToFit Property

True if text automatically shrinks to fit in the available column width. Returns Null if this property isn’t set to the same value for all cells in the specified range.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ShrinkToFit As Object
    Get
    Set
'Usage
Dim instance As CellFormat
Dim value As Object

value = instance.ShrinkToFit

instance.ShrinkToFit = value
Object ShrinkToFit { get; set; }

Property Value

Type: System.Object

See Also

Reference

CellFormat Interface

CellFormat Members

Microsoft.Office.Interop.Excel Namespace