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: ``` //check for bolds if (y == 16 && item.Cell(y).HasRichText) { string storeHtml = rbm.toStr(item.Cell(y).Value); foreach (var richText in item.Cell(y).RichText) { if (richText.Bold) { storeHtml = storeHtml.Replace(richText.Text, "<b>" + richText.Text + "</b>"); } } array[y - 1] = storeHtml; } ``` Perhaps I shouldn't be using 'HasRichText.' How else would I know if there is bold text in the cell? Again, this works for bold items within the cell but not if the entire cell is bold 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>