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
Initializes a new transformable shape with rotation support, computing whether the initial rotation angle requires anchor adjustment.
protected FloatingTransformableShape(Worksheet worksheet, ShapeBase shape, CellIndex cellIndex, double offsetX, double offsetY)
The worksheet assigned to the floating transformable shape.
shapeShapeBaseThe shape assigned to the floating transformable shape.
cellIndexCellIndexThe cell index where the top left corner of the floating transformable shape is positioned.
offsetXdoubleThe left offset of the top left corner of the floating transformable shape relative to the top left corner of the cell index.
offsetYdoubleThe 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.
Properties
Controls whether the shape is mirrored horizontally, flipping content left-to-right around the vertical axis.
public virtual bool IsHorizontallyFlipped { get; set; }
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.
public virtual bool IsVerticallyFlipped { get; set; }
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.
public virtual double RotationAngle { get; set; }
The rotation angle of the shape.