Hi,
I am using de version 19.4.053 of Syncfusion.DocIO and the problem seem persists. The textbox fill color is not transparent but white.
What news ?
Thanks
Hi Danielle,
Currently, DocIO library doesn’t support transparency in textbox fill color. We
have already logged this as a feature request in our database. We don’t have
any immediate plans to implement this feature. We will let you know when this
feature is implemented.
As a workaround, kindly use Shape
instead of Textbox in your Word document. Because transparency is supported in Shape
in DocIO.
Please refer to the below UG documentation to know more about working with shapes.
Working
with shapes
Please refer to the below code snippet to set transparency for a shape in a Word
document.
WordDocument document = new WordDocument();
document.EnsureMinimal();
//Append shape to the document.
Shape shape = document.LastParagraph.AppendShape(AutoShapeType.Rectangle, 100, 100);
//Set fill color for the shape.
shape.FillFormat.Color = System.Drawing.Color.Red;
//Set transparency for the shape.
shape.FillFormat.Transparency = 50;
//Save and close the document.
document.Save(@"../../Output.docx", Syncfusion.DocIO.FormatType.Docx);
document.Close();
Regards,
Akash.