Skip to main content

XlCellAlignment.WrapText Property

Gets or sets a value indicating whether the text contained in a cell should be wrapped into multiple lines.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public bool WrapText { get; set; }

Property Value

Type Description
Boolean

true, if the cell text should be line-wrapped; otherwise, false.

Remarks

Use the WrapText property to wrap the cell text into multiple lines. This fits the cell content to the column width and prevents displaying it over adjacent cells.

To set other alignment characteristics for an individual cell (e.g., horizontal and vertical alignment, indent, text rotation, a value indicating whether the text should be shrunk in a cell), use the corresponding properties of the XlCellAlignment object.

To apply the alignment settings to a cell, pass the specified XlCellAlignment object to the IXlCell.ApplyFormatting method as a parameter, or assign it to the IXlCell.Formatting property.

For more information on how to align data contained in a cell, refer to the How to: Align Cell Content topic.

See Also