New to Telerik Document ProcessingStart a free 30-day trial

Abstract base for floating shapes that support rotation and flip transformations, automatically adjusting anchor positions to maintain visual consistency.

Definition

Constructors

Initializes a new transformable shape with rotation support, computing whether the initial rotation angle requires anchor adjustment.

C#
protected FloatingTransformableShape(Worksheet worksheet, ShapeBase shape, CellIndex cellIndex, double offsetX, double offsetY)
Parameters:worksheetWorksheet

The worksheet assigned to the floating transformable shape.

shapeShapeBase

The shape assigned to the floating transformable shape.

cellIndexCellIndex

The cell index where the top left corner of the floating transformable shape is positioned.

offsetXdouble

The left offset of the top left corner of the floating transformable shape relative to the top left corner of the cell index.

offsetYdouble

The top offset of the top left corner of the floating transformable shape relative to the top left corner of the cell index.

Methods

Applies a new rotation angle via command, optionally adjusting the anchor cell to maintain the visual top-left corner position.

C#
public void SetRotationAngle(double rotationAngle, bool adjustCellIndex = false)
Parameters:rotationAngledouble

The rotation angle.

adjustCellIndexbool

A value indicating whether the top cell index and offset of the image should be adjusted.

Properties

Controls whether the shape is mirrored horizontally, flipping content left-to-right around the vertical axis.

C#
public virtual bool IsHorizontallyFlipped { get; set; }
Property Value:

The value indicating whether the shape is horizontally flipped.

Controls whether the shape is mirrored vertically, flipping content top-to-bottom around the horizontal axis.

C#
public virtual bool IsVerticallyFlipped { get; set; }
Property Value:

The value indicating whether the shape is vertically flipped.

Rotation angle in degrees, clockwise from the upright position; certain ranges (45-135°, 225-315°) trigger automatic anchor repositioning.

C#
public virtual double RotationAngle { get; set; }
Property Value:

The rotation angle of the shape.