Class
FloatingTransformableShape

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Shapes

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public abstract class FloatingTransformableShape : FloatingResizableShapeBase

Inheritance: objectFloatingShapeBaseFloatingResizableShapeBaseFloatingTransformableShape

Derived Classes: FloatingImage

Inherited Members FloatingResizableShapeBase.CellIndexFloatingResizableShapeBase.OffsetXFloatingResizableShapeBase.OffsetYFloatingResizableShapeBase.WidthFloatingResizableShapeBase.HeightFloatingShapeBase.SetWidth(bool, double, bool)FloatingShapeBase.SetHeight(bool, double, bool)FloatingShapeBase.OnShapeChanged()FloatingShapeBase.FloatingShapeTypeFloatingShapeBase.WorksheetFloatingShapeBase.IdFloatingShapeBase.NameFloatingShapeBase.DescriptionFloatingShapeBase.LockAspectRatioFloatingShapeBase.ShapeChanged

Constructors

FloatingTransformableShape(Worksheet, ShapeBase, CellIndex, double, double)

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

Declaration

cs-api-definition
protected FloatingTransformableShape(Worksheet worksheet, ShapeBase shape, CellIndex cellIndex, double offsetX, double offsetY)

Parameters

worksheet

Worksheet

The worksheet assigned to the floating transformable shape.

shape

ShapeBase

The shape assigned to the floating transformable shape.

cellIndex

CellIndex

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

offsetX

double

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

offsetY

double

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

Properties

IsHorizontallyFlipped

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

Declaration

cs-api-definition
public virtual bool IsHorizontallyFlipped { get; set; }

Property Value

bool

The value indicating whether the shape is horizontally flipped.

IsVerticallyFlipped

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

Declaration

cs-api-definition
public virtual bool IsVerticallyFlipped { get; set; }

Property Value

bool

The value indicating whether the shape is vertically flipped.

RotationAngle

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

Declaration

cs-api-definition
public virtual double RotationAngle { get; set; }

Property Value

double

The rotation angle of the shape.

Methods

SetRotationAngle(double, bool)

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

Declaration

cs-api-definition
public void SetRotationAngle(double rotationAngle, bool adjustCellIndex = false)

Parameters

rotationAngle

double

The rotation angle.

adjustCellIndex

bool

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