Individual words are detected but if the entire string is bold, false is returned. Am I missing something?
Comments: I don't understand the problem: var ws = new XLWorkbook().AddWorksheet("Sheet1"); ws.Cell("A1").RichText.AddText("Bold").SetBold(); Console.WriteLine(ws.Cell("A1").HasRichText); // True because the cell has rich text ws.Cell("A2").Style.Font.SetBold(); Console.WriteLine(ws.Cell("A2").HasRichText); // False because the cell doesn't have rich text
Comments: I don't understand the problem: var ws = new XLWorkbook().AddWorksheet("Sheet1"); ws.Cell("A1").RichText.AddText("Bold").SetBold(); Console.WriteLine(ws.Cell("A1").HasRichText); // True because the cell has rich text ws.Cell("A2").Style.Font.SetBold(); Console.WriteLine(ws.Cell("A2").HasRichText); // False because the cell doesn't have rich text