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: ws.Cell("A1").Style.Font.SetBold(); Console.WriteLine(ws.Cell("A1").Style.Font.Bold); // True There are two ways to get the text in a cell to appear in bold: 1) Set the cell's font to bold 2) Insert a bolded rich text in the cell If you're trying to find if someone put anything in bold, be it the whole cell or a character within the text, then you have to check the cell's style AND the rich texts.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



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