Hücre İçine HTML Zengin Metin Ekleme

Aşağıdaki kod örneği, hücre içine HTML zengin metin eklemenin nasıl yapıldığını gösterir. Lütfen çıktı Excel dosyasının ekran görüntüsüne bakın.

todo:image_alt_text

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
Cell cell = worksheet.Cells["A1"];
cell.HtmlString = "<Font Style=\"FONT-WEIGHT: bold;FONT-STYLE: italic;TEXT-DECORATION: underline;FONT-FAMILY: Arial;FONT-SIZE: 11pt;COLOR: #ff0000;\">This is simple HTML formatted text.</Font>";
workbook.Save(dataDir + "output_out.xlsx");

İlgili Makaleler