Enum ReflectionEffectType

ReflectionEffectType enumeration

Represents the effect type of reflection.

public enum ReflectionEffectType

Values

NameValueDescription
None0No reflection effect.
Custom1Custom reflection effect.
TightReflectionTouching2Tight reflection, touching.
HalfReflectionTouching3Half reflection, touching.
FullReflectionTouching4Full reflection, touching.
TightReflection4PtOffset5Tight reflection, 4 pt offset.
HalfReflection4PtOffset6Half reflection, 4 pt offset.
FullReflection4PtOffset7Full reflection, 4 pt offset.
TightReflection8PtOffset8Tight reflection, 8 pt offset.
HalfReflection8PtOffset9Half reflection, 8 pt offset.
FullReflection8PtOffset10Full reflection, 8 pt offset.

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AsposeCellsExamples
{
    public class DrawingClassReflectionEffectTypeDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            
            // Access the first worksheet
            Worksheet worksheet = workbook.Worksheets[0];
            
            // Add a rectangle shape
            Shape rectangle = worksheet.Shapes.AddRectangle(0, 0, 0, 0, 100, 100);
            
            // Get the reflection effect
            ReflectionEffect reflection = rectangle.Reflection;
            
            // Set reflection properties
            reflection.Type = ReflectionEffectType.HalfReflectionTouching;
            reflection.Transparency = 0.5;
            reflection.Size = 55;
            reflection.Blur = 0.5;
            reflection.Distance = 0;
            
            // Save the workbook
            workbook.Save("DrawingClassReflectionEffectTypeDemo.xlsx");
            
            Console.WriteLine("Reflection effect demo completed successfully.");
        }
    }
}

See Also