Share via


Range.ShrinkToFit Property

Determines if text automatically shrinks to fit in the available column width.

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 Range
Dim value As Object

value = instance.ShrinkToFit

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

Property Value

Type: System.Object

Remarks

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

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace