EffectFormat — Aspose.Slides FOSS for .NET API Reference

The EffectFormat class manages visual effects applied to a shape. Each effect type can be enabled, configured, and disabled independently.

Package: Aspose.Slides.Foss (net9.0)

using Aspose.Slides.Foss;
public class EffectFormat : PVIObject, IEffectFormat, IEffectParamSource

Inheritance

PVIObjectEffectFormat


Properties

PropertyTypeAccessDescription
IsNoEffectsboolReadWhether no effects are applied.
BlurEffectIBlur?ReadBlur effect settings.
FillOverlayEffectIFillOverlay?ReadFill overlay effect settings.
GlowEffectIGlow?ReadGlow effect settings.
InnerShadowEffectIInnerShadow?ReadInner shadow settings.
OuterShadowEffectIOuterShadow?ReadOuter shadow settings.
PresetShadowEffectIPresetShadow?ReadPreset shadow settings.
ReflectionEffectIReflection?ReadReflection effect settings.
SoftEdgeEffectISoftEdge?ReadSoft edge effect settings.

Methods

Enable / Disable Effects

Each effect type has Enable*() and Disable*() method pairs:

MethodDescription
EnableBlurEffect() / DisableBlurEffect()Toggle blur effect.
SetBlurEffect(float radius, bool grow)Set blur with specific radius.
EnableGlowEffect() / DisableGlowEffect()Toggle glow effect.
EnableInnerShadowEffect() / DisableInnerShadowEffect()Toggle inner shadow.
EnableOuterShadowEffect() / DisableOuterShadowEffect()Toggle outer shadow.
EnablePresetShadowEffect() / DisablePresetShadowEffect()Toggle preset shadow.
EnableReflectionEffect() / DisableReflectionEffect()Toggle reflection.
EnableSoftEdgeEffect() / DisableSoftEdgeEffect()Toggle soft edge.
EnableFillOverlayEffect() / DisableFillOverlayEffect()Toggle fill overlay.

Usage Examples

Check for Effects

using Aspose.Slides.Foss;

using var prs = new Presentation("deck.pptx");
var shape = prs.Slides[0].Shapes[0];
var fx = shape.EffectFormat;

Console.WriteLine($"Has effects: {!fx.IsNoEffects}");
if (fx.OuterShadowEffect != null)
{
    Console.WriteLine("Outer shadow is active");
}

See Also