Enum LightRigDirectionType

LightRigDirectionType enumeration

Represents the light rig direction type.

public enum LightRigDirectionType

Values

NameValueDescription
Bottom0Bottom
BottomLeft1Bottom left.
BottomRight2Bottom Right.
Left3Left.
Right4Right.
Top5Top.
TopLeft6Top left.
TopRight7Top Right.

Examples

namespace AsposeCellsExamples
{
    using Aspose.Cells;
    using Aspose.Cells.Drawing;
    using System;

    public class DrawingClassLightRigDirectionTypeDemo
    {
        public static void Run()
        {
            // Create a new workbook
            Workbook workbook = new Workbook();
            Worksheet worksheet = workbook.Worksheets[0];

            // Add a shape to demonstrate light rig direction
            Shape shape = worksheet.Shapes.AddShape(MsoDrawingType.TextBox, 10, 10, 200, 200, 0, 0);

            // Set the light rig direction for the shape's 3D format
            shape.ThreeDFormat.LightingDirection = LightRigDirectionType.TopRight;

            // Demonstrate different light rig directions
            Console.WriteLine("Current Light Rig Direction: " + shape.ThreeDFormat.LightingDirection);

            // Change light rig direction
            shape.ThreeDFormat.LightingDirection = LightRigDirectionType.BottomLeft;
            Console.WriteLine("Changed Light Rig Direction: " + shape.ThreeDFormat.LightingDirection);

            // Iterate through all possible light rig directions
            Console.WriteLine("\nAll Light Rig Direction Types:");
            foreach (LightRigDirectionType direction in Enum.GetValues(typeof(LightRigDirectionType)))
            {
                Console.WriteLine(direction.ToString());
            }

            // Save the workbook
            workbook.Save("LightRigDirectionTypeDemo.xlsx");
        }
    }
}

See Also