Shadow box

Hi,

I'm trying to create a shadow box rectangle. I want it to look like a grey box behind a white box (grey box would be offset a little from the white box). I've been messing with the ShadowFormat property but haven't been able to get what I'm looking for. Any help would be appreciated.

Thanks

Dear Jassem,

Thanks for considering Aspose.Slides

Please check this code and also see its output presentation outShadow.ppt attached by me.

C#:

//Create a presentation
Presentation pres = new Presentation();
Slide sld = pres.GetSlideByPosition(1);

//Add a rectangle
Shape shp = sld.Shapes.AddRectangle(100, 100, 600, 600);
shp.FillFormat.Type = FillType.Solid;
shp.FillFormat.ForeColor = Color.Green; //Change it to white

//Add a shadow
ShadowFormat sf = shp.ShadowFormat;
sf.ShadowStyle = ShadowStyle.Style12;
sf.Visible = true;

//Write on disk
pres.Write("c:\\outShadow.ppt");