ClassFloatingTransformableShape
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:
public abstract class FloatingTransformableShape : FloatingResizableShapeBase
Inheritance: objectFloatingShapeBaseFloatingResizableShapeBaseFloatingTransformableShape
Derived Classes:
Inherited Members
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
protected FloatingTransformableShape(Worksheet worksheet, ShapeBase shape, CellIndex cellIndex, double offsetX, double offsetY)
Parameters
worksheet
The worksheet assigned to the floating transformable shape.
shape
The shape assigned to the floating transformable shape.
cellIndex
The cell index where the top left corner of the floating transformable shape is positioned.
offsetX
The left offset of the top left corner of the floating transformable shape relative to the top left corner of the cell index.
offsetY
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
public virtual bool IsHorizontallyFlipped { get; set; }
Property Value
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
public virtual bool IsVerticallyFlipped { get; set; }
Property Value
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
public virtual double RotationAngle { get; set; }
Property Value
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.