We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to set shadow of shape in word

As the subject said , I use aspose.word for .net to set shadow of shape , C#, but I didn’t find the API of this option, does aspose support the shape shadow? where is the API?

Hi there,

Thanks for your inquiry. You can set borders shadow of a shape using following code. However, currently Aspose.Words does not support to set shadow of a shape. We will appreciate it if you please share your sample input and expected output documents here, it will help us to log your requirement accordingly.

Document docNew = new

DocumentBuilder builder = new DocumentBuilder(docNew);

Shape shape = new Shape(docNew, ShapeType.Image);

shape.ImageData.ImageBytes = File.ReadAllBytes("Image.jpg");

shape.RelativeHorizontalPosition = RelativeHorizontalPosition.Default;

shape.Left = 0;

shape.RelativeVerticalPosition = RelativeVerticalPosition.TextFrameDefault;

shape.Top = 0;

shape.WrapType = WrapType.Inline;


shape.ImageData.Borders.Color = Color.Black;

shape.ImageData.Borders.LineStyle = LineStyle.Single;

shape.ImageData.Borders.LineWidth = 1;

shape.ImageData.Borders.Shadow = true;


Please feel free to contact us for any further assistance.

Best Regards,

thank you for your help

A post was merged into an existing topic: Aspose word C# shape add shadow effect