I have some Text that I am finding on the slides and I need to set it's Alpha to 0.75 if I can.
This is my current attempt but it's not setting the Alpha just the Color.
//Update the Colour of the E3 1st Score to the alpha color
ITextPart E3Text = pptxDoc.Find("XXXXXX", true, true).GetAsOneTextPart();
E3Text.Font.Color = Syncfusion.Presentation.ColorObject.FromArgb(40, 255, 103, 0);
Cliff, we have confirmed that the reported issue
with “Alpha value is not applied properly in font color” is a defect and
we have logged a defect report. We will include the fix for this defect in our
weekly NuGet release, which is estimated to be available on two weeks. We
will let you know once the fix is included in the weekly release.
The status of this bug can be tracked through the below link:
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
However, we suggest you to use the below workaround solution until we solve this problem.
//Opens an existing presentation.
using (IPresentation pptxDoc = Presentation.Open("Input.pptx"))
//Gets the first shape from the first slide
IShape shape = pptxDoc.Slides.Shapes as IShape;
//Gets the first text part from the shape
ITextPart textPart = shape.TextBody.Paragraphs.TextParts;
textPart.Font.Color.SystemColor = Color.FromArgb(255 - 40, 255, 0, 0);
//Saves the Presentation
Cliff, as promised
earlier, we have included the fix for the reported issue with “Alpha value
is not applied properly in font color” in our latest weekly NuGet release (v22.214.171.124).
Please use the below link to download our latest weekly NuGet:
The status of this bug task can be tracked through the below link:
Note: We will include this fix in our 2023 Volume 1 Main Release which will be available in mid of March 2023.