ShapeReflection module

class ShapeReflection.ShapeReflection

Bases: XlsObject, IReflectionEffect, ICloneParent

Represents reflection effect settings for a shape in Excel.

This class implements the IReflectionEffect and ICloneParent interfaces and provides functionality for configuring reflection effects applied to shapes in Excel worksheets. Reflection effects create a mirror image of the shape, simulating the appearance of the shape being reflected on a shiny surface.

property Blur: int

Gets or sets the blur radius of the reflection.

The blur radius determines how blurry or sharp the reflection appears.

Returns:

The blur radius of the reflection in points.

Return type:

int

Clone(parent: SpireObject) SpireObject

Creates a copy of the reflection effect with the specified parent.

Parameters:

parent (SpireObject) – The parent object for the cloned reflection effect.

Returns:

A new SpireObject that is a copy of this reflection effect.

Return type:

SpireObject

property Direction: float

Gets or sets the direction angle of the reflection.

The direction angle determines the orientation of the reflection relative to the shape.

Returns:

The direction angle in degrees.

Return type:

float

property Distance: int

Gets or sets the distance of the reflection from the shape.

The distance determines how far the reflection appears from the original shape.

Returns:

The distance of the reflection in points.

Return type:

int

property FadeDirection: float

Gets or sets the fade direction angle of the reflection.

The fade direction determines the direction in which the reflection gradually fades out.

Returns:

The fade direction angle in degrees.

Return type:

float

property RotWithShape: bool

Gets or sets whether the reflection rotates with the shape.

When set to True, the reflection will rotate along with the shape when the shape is rotated.

Returns:

True if the reflection rotates with the shape; otherwise, False.

Return type:

bool

property Size: int

Gets or sets the size of the reflection as a percentage of the original shape.

The size determines how large the reflection appears relative to the original shape.

Returns:

The size of the reflection as a percentage (0-100).

Return type:

int

property Transparency: int

Gets or sets the transparency level of the reflection.

The transparency value ranges from 0 (fully opaque) to 100 (fully transparent).

Returns:

The transparency level as a percentage (0-100).

Return type:

int