

Create the first row in the worksheet. Using(IXlColumn column = sheet.CreateColumn()) Create three successive columns and set their widths. Using(IXlSheet sheet = document.CreateSheet())

Assign the specified XlCellAlignment object to the IXlCell.Formatting property.Call the IXlCell.ApplyFormatting method and pass the specified XlCellAlignment object as a parameter.To apply alignment settings to a cell, use one of the following approaches. For example, to wrap long text in a cell into multiple lines, set the XlCellAlignment.WrapText property to true. Set the required properties of the XlCellAlignment object.This method returns the XlCellAlignment object, so that you can use its properties to specify additional alignment options (indent, text rotation, etc.). Call the static XlCellAlignment.FromHV method to specify both horizontal and vertical alignment for a cell.Use the XlCellAlignment default constructor.

Initialize an instance of the XlCellAlignment class. To change alignment characteristics of cell content, perform the steps below.
