//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets[0]; IRange rangeB3 = worksheet.Range["B3"]; rangeB3.Value = "The WrapText property is applied to wrap the text within a cell"; rangeB3.WrapText = true; worksheet.Rows[2].RowHeight = 150; // Save to an excel file workbook.Save("WrapText.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets(0) Dim rangeB3 As IRange = worksheet.Range!B3 rangeB3.Value = "The WrapText property is applied to wrap the text within a cell" rangeB3.WrapText = True worksheet.Rows(2).RowHeight = 150 ' save to an excel file workbook.Save("WrapText.xlsx")