Skip to main content
All docs
V26.1
  • GlowEffect.Radius Property

    Gets or sets the radius of the glow effect.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public float Radius { get; set; }

    Property Value

    Type Description
    Single

    The radius of the glow effect.

    Remarks

    The GlowEffect class exposes properties that you can use to configure the glow effect:

    Color
    Specifies the color of the glow effect.
    Radius
    Specifies the radius of the glow effect.

    The following code snippet applies a glow effect to a shape:

    DevExpress Presentation API - Glow Effect options

    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.DarkGreen), Width = 8 };
            shape1.Fill = new SolidFill(Color.White);
            shape1.X = 100;
            shape1.Y = 100;
            shape1.Width = 300;
            shape1.Height = 300;
            slide.Shapes.Add(shape1);
    
            ShapeEffectProperties e_properties = new ShapeEffectProperties();
    
            e_properties.Glow = new GlowEffect {
                Color = new OfficeColor(Color.Yellow),
                Radius = 50
            };
            shape1.Effects = e_properties;
        }
    }
    
    See Also