Share via


NamedRange.ShrinkToFit Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property ShrinkToFit As Object
'Usage
Dim instance As NamedRange 
Dim value As Object 

value = instance.ShrinkToFit

instance.ShrinkToFit = value
[BrowsableAttribute(false)]
public Object ShrinkToFit { get; set; }
[BrowsableAttribute(false)]
public:
property Object^ ShrinkToFit {
    Object^ get ();
    void set (Object^ value);
}
public function get ShrinkToFit () : Object 
public function set ShrinkToFit (value : Object)

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 Class

NamedRange Members

Microsoft.Office.Tools.Excel Namespace