Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents from any .NET(C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue Jan 22, 2019 11:39 am

Please tell me how to set transparency in ChartDataLabel.

RostykS
 
Posts: 18
Joined: Wed Dec 26, 2018 12:57 pm

Wed Jan 23, 2019 7:40 am

Hi,

There is alpha value in System.Drawing.Color which could set the transparencey. Please refer to following code:
Code: Select all
label1.TextFrame.TextRange.Fill.FillType = Spire.Presentation.Drawing.FillFormatType.Solid;
//set the transparency of the of datalabel
label1.TextFrame.Paragraphs[0].DefaultCharacterProperties.Fill.SolidColor.Color = Color.FromArgb(60, Color.Red);

If this doesn't meet your requirement, please provide more information such as your input file and the expected output file.

Sincerely,
Anna
E-iceblue support team
User avatar

Anna.Zhang
 
Posts: 73
Joined: Thu Sep 27, 2018 3:20 am

Tue Jan 29, 2019 9:24 am

Hi,

Greetings from E-iceblue.
Did you test my code? Did it meet your requirement?
Thanks in advance for your valuable feedback and time.

Sincerely,
Anna
E-iceblue support team
User avatar

Anna.Zhang
 
Posts: 73
Joined: Thu Sep 27, 2018 3:20 am

Return to Spire.Presentation