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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.