Class Reflection
Inheritance
System.Object
Reflection
Assembly: IronPPT.dll
Syntax
public class Reflection : Object
Adding a mirrored reflection beneath text on a slide runs through Reflection. It describes the faded mirror image that appears below a styled run, the polished look used on title text or a logo word, and gathers every parameter of that effect, its blur, distance, opacity, angle, and color, into one configurable object. A developer reaches for it when text should sit on a reflective surface rather than flat on the slide.
A Reflection is configured and then attached to text through a TextEffect, whose ReflectionEffect property holds it alongside the glow, shadow, 3-D, and outline effects. It sits beside Glow, Shadow, Effect3D, and TextOutlineEffect as the text decorations IronPPT exposes, so a developer mixes them by setting the matching property on the same TextEffect.
The properties group by what they control. **Geometry**: DistanceFromText, StartPosition, and EndPosition place the reflection, while HorizontalScalingFactor, VerticalScalingFactor, HorizontalSkewAngle, and VerticalSkewAngle size and slant it. **Appearance**: BlurRadius softens the image, StartingOpacity and EndingOpacity set its fade, SchemeColor (a Color) tints it, and Alignment (a RectangleAlignmentValues) anchors it. **Fade direction**: DirectionAngle and FadeDirectionAngle aim the gradient. For the measurement-based properties, paired methods read and write in explicit units, SetBlurRadius, SetDistanceFromText, SetStartPosition, and SetEndPosition each take a value and a Units, with matching Get methods returning the value in a requested Units.
using IronPPT.Models;
using IronPPT.Enums;
var reflection = new Reflection();
reflection.BlurRadius = 4;
reflection.SetDistanceFromText(2, Units.Point);
The add shape example creates content an effect decorates, the add text how-to covers the text it applies to, and the slide element tutorial covers building slide content.
Constructors
Reflection()
Declaration
Properties
Alignment
Declaration
public RectangleAlignmentValues Alignment { get; set; }
Property Value
BlurRadius
Declaration
public double BlurRadius { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
DirectionAngle
Declaration
public double DirectionAngle { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
DistanceFromText
Declaration
public double DistanceFromText { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
EndingOpacity
Declaration
public double EndingOpacity { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
EndPosition
Declaration
public double EndPosition { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
FadeDirectionAngle
Declaration
public double FadeDirectionAngle { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
HorizontalScalingFactor
Declaration
public int HorizontalScalingFactor { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
HorizontalSkewAngle
Declaration
public double HorizontalSkewAngle { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
SchemeColor
Declaration
public Color SchemeColor { get; set; }
Property Value
StartingOpacity
Declaration
public double StartingOpacity { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
StartPosition
Declaration
public double StartPosition { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
VerticalScalingFactor
Declaration
public double VerticalScalingFactor { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
VerticalSkewAngle
Declaration
public double VerticalSkewAngle { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
Methods
GetBlurRadius(Units)
Declaration
public double GetBlurRadius(Units measurementUnit)
Parameters
| Type |
Name |
Description |
| Units |
measurementUnit |
|
Returns
| Type |
Description |
| System.Double |
|
GetDistanceFromText(Units)
Declaration
public double GetDistanceFromText(Units measurementUnit)
Parameters
| Type |
Name |
Description |
| Units |
measurementUnit |
|
Returns
| Type |
Description |
| System.Double |
|
GetEndPosition(Units)
Declaration
public double GetEndPosition(Units measurementUnit)
Parameters
| Type |
Name |
Description |
| Units |
measurementUnit |
|
Returns
| Type |
Description |
| System.Double |
|
GetStartPosition(Units)
Declaration
public double GetStartPosition(Units measurementUnit)
Parameters
| Type |
Name |
Description |
| Units |
measurementUnit |
|
Returns
| Type |
Description |
| System.Double |
|
SetBlurRadius(Double, Units)
Declaration
public void SetBlurRadius(double blurRadius, Units measurementUnit)
Parameters
| Type |
Name |
Description |
| System.Double |
blurRadius |
|
| Units |
measurementUnit |
|
SetDistanceFromText(Double, Units)
Declaration
public void SetDistanceFromText(double distance, Units measurementUnit)
Parameters
| Type |
Name |
Description |
| System.Double |
distance |
|
| Units |
measurementUnit |
|
SetEndPosition(Double, Units)
Declaration
public void SetEndPosition(double endPosition, Units measurementUnit)
Parameters
| Type |
Name |
Description |
| System.Double |
endPosition |
|
| Units |
measurementUnit |
|
SetStartPosition(Double, Units)
Declaration
public void SetStartPosition(double startPosition, Units measurementUnit)
Parameters
| Type |
Name |
Description |
| System.Double |
startPosition |
|
| Units |
measurementUnit |
|