NamedRange.ShrinkToFit Property

Gets or sets a value that indicates whether text automatically shrinks to fit in the available column width.

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

Syntax

'Declaration
Property ShrinkToFit As Object
Object ShrinkToFit { get; set; }

Property Value

Type: System.Object
true if text automatically shrinks to fit in the available column width; nulla null reference (Nothing in Visual Basic) if this property is not set to the same value for all cells in the NamedRange control.

.NET Framework Security

See Also

Reference

NamedRange Interface

Microsoft.Office.Tools.Excel Namespace