XlCellAlignment.JustifyLastLine Property
Gets or sets a value indicating whether the justified or distributed alignment should be applied to the last line of the cell text.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to distribute the last line of the text in a cell; otherwise, false. The default is false. |
Remarks
Setting the JustifyLastLine property value to true takes effect only for East Asian text and should not be used in other contexts. For other languages, you can set the XlCellAlignment.HorizontalAlignment property to XlHorizontalAlignment.Distributed and reset the XlCellAlignment.Indent value to 0 if required, to justify the last line of the multi-line text to fill the entire cell width (from the left border to the right border of a cell).
To set other alignment characteristics for an individual cell (e.g., horizontal and vertical alignment, indent, text rotation, values indicating whether the text should be wrapped or 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.