public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_Text();
// ExStart:ApplyOuterShadow
// Create an instance of Presentation class
Presentation presentation = new Presentation();
// Get reference of a slide
ISlide slide = presentation.Slides[0];
// Add an AutoShape of Rectangle type
IAutoShape ashp = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 75, 400, 300);
ashp.FillFormat.FillType = FillType.NoFill;
// Add TextFrame to the Rectangle
ashp.AddTextFrame("Aspose TextBox");
IPortion port = ashp.TextFrame.Paragraphs[0].Portions[0];
IPortionFormat pf = port.PortionFormat;
pf.FontHeight = 50;
// Enable InnerShadowEffect
IEffectFormat ef = pf.EffectFormat;
ef.EnableInnerShadowEffect();
// Set all necessary parameters
ef.InnerShadowEffect.BlurRadius = 8.0;
ef.InnerShadowEffect.Direction = 90.0F;
ef.InnerShadowEffect.Distance = 6.0;
ef.InnerShadowEffect.ShadowColor.B = 189;
// Set ColorType as Scheme
ef.InnerShadowEffect.ShadowColor.ColorType = ColorType.Scheme;
// Set Scheme Color
ef.InnerShadowEffect.ShadowColor.SchemeColor = SchemeColor.Accent1;
// ExEnd:ApplyOuterShadow
// Save Presentation
presentation.Save(dataDir + "WordArt_out.pptx", SaveFormat.Pptx);
}
}