EffectPropertiesBase.InnerShadow Property
Gets or sets an inner shadow effect. The shadow is applied within shape edges.
Namespace: DevExpress.Docs.Presentation
Assembly: DevExpress.Docs.Presentation.v25.2.dll
Declaration
Property Value
| Type | Description |
|---|---|
| InnerShadowEffect | A |
Remarks
The InnerShadowEffect class exposes properties that you can use to configure the inner shadow effect:
- Angle
Specifies the direction of the shadow’s offset.

- BlurRadius
Specifies the inner shadow’s blur radius.

- Distance
Specifies how far to offset the shadow.

- Color
- Specifies the inner shadow color.
The following code snippet applies an inner shadow effect to a shape:
using DevExpress.Docs.Presentation;
using System.Drawing;
using DevExpress.Docs;
namespace PresentationApiSample;
public class Program {
public static void Main(string[] _) {
Presentation presentation = new Presentation();
presentation.Slides.Clear();
Slide slide = new Slide(SlideLayoutType.Blank);
presentation.Slides.Add(slide);
Shape shape1 = new Shape(ShapeType.Rectangle);
shape1.Outline = new OutlineStyle { Fill = new SolidFill(Color.RoyalBlue), Width = 8 };
shape1.Fill = new SolidFill(Color.White);
shape1.X = 1100;
shape1.Y = 1100;
shape1.Width = 300;
shape1.Height = 300;
slide.Shapes.Add(shape1);
ShapeEffectProperties e_properties = new ShapeEffectProperties();
e_properties.InnerShadow = new InnerShadowEffect {
Angle = 45,
BlurRadius = 40,
Color = new OfficeColor(Color.Gray),
Distance = 50
};
shape1.Effects = e_properties;
}
}
See Also