We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

NamedRange.WrapText Property

Gets or sets a value that indicates whether Microsoft Office Excel wraps the text in the NamedRange control.

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

Object WrapText { get; set; }

Property Value

Type: System.Object
true if Excel wraps the text in the object; null if the NamedRange control contains some cells that wrap text and other cells that do not wrap text.

Excel will change the row height of the NamedRange control, if necessary, to accommodate the text in the range.