Search Results for

    Show / Hide Table of Contents

    Class Glow

    Inheritance
    System.Object
    Glow
    Namespace: IronPPT.Models
    Assembly: IronPPT.dll
    Syntax
    public class Glow : Object

    Glow surrounds a shape with a soft colored halo, the diffuse light that bleeds outward from its edges. Apply one when a slide element should appear to emit light or stand out against its background, and control how far the halo spreads and what color it takes.

    GlowColor, a Color, sets the halo's color, and GlowRadius, a double, sets how far it extends from the edge in the library's internal unit. Because the raw radius is unit-agnostic, set it through SetGlowRadius, which accepts a value plus a Units, and read it back with GetGlowRadius, which returns the radius in the Units you ask for. That keeps the code working in points or centimeters while the stored value stays neutral. A larger radius produces a wider, softer glow, and a saturated GlowColor makes the effect read more strongly. Assign a configured Glow to the element's style so it travels with the shape. To see where this effect fits when decorating a slide element, start from the styling workflow.

    using IronPPT.Models;
    using IronPPT.Enums;
    
    var glow = new Glow();
    glow.SetGlowRadius(8, Units.Point);

    The slide element tutorial styles elements on a slide, and the add shape example places the shape a glow decorates.

    Constructors

    Glow()

    Declaration
    public Glow()

    Properties

    GlowColor

    Declaration
    public Color GlowColor { get; set; }
    Property Value
    Type Description
    Color

    GlowRadius

    Declaration
    public double GlowRadius { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    GetGlowRadius(Units)

    Declaration
    public double GetGlowRadius(Units measurementUnit)
    Parameters
    Type Name Description
    Units measurementUnit
    Returns
    Type Description
    System.Double

    SetGlowRadius(Double, Units)

    Declaration
    public void SetGlowRadius(double glowRadius, Units measurementUnit)
    Parameters
    Type Name Description
    System.Double glowRadius
    Units measurementUnit
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet