Class FloatingTransformableShape
Abstract base for floating shapes that support rotation and flip transformations, automatically adjusting anchor positions to maintain visual consistency.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.Shapes
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class FloatingTransformableShape : FloatingResizableShapeBase, ICopyable<FloatingShapeBase>
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
worksheet
The worksheet assigned to the floating transformable shape. |
|
ShapeBase
shape
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. |
|
System.Double
offsetX
The left offset of the top left corner of the floating transformable shape relative to the top left corner of the cell index. |
|
System.Double
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
|
System.Boolean
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
|
System.Boolean
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
|
System.Double
The rotation angle of the shape. |
Methods
SetRotationAngle(Double, Boolean)
Applies a new rotation angle via command, optionally adjusting the anchor cell to maintain the visual top-left corner position.
Declaration
public void SetRotationAngle(double rotationAngle, bool adjustCellIndex = false)
Parameters
|
System.Double
rotationAngle
The rotation angle. |
|
System.Boolean
adjustCellIndex
A value indicating whether the top cell index and offset of the image should be adjusted. |