Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: richText.Bold returns false if entire cell text is bold... [9322]

$
0
0
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

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>