문제

I am trying to create a single bold DataLabel on a chart using SpreadsheetGear. I can set the number to be Green using the code below:

DataLabels(0).NumberFormat = "[Green]###,###,##0"

But when I attempt to set a property of the Font nothing appears to happen. I have tried the below with no success.

DataLabels(0).Font.Bold = True
도움이 되었습니까?

해결책

The code you have should work. If you have other code that is manipulating the series that the data labels belong to, try putting the line

DataLabels(0).Font.Bold = True

after any such code.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top