InterfaceIPosition
Contract for positioning and transforming elements using a 2D matrix (scale, rotate, translate) within fixed documents.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.Data
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public interface IPosition
Properties
Methods
Clone()
Create a deep copy of the position including its transformation state.
Declaration
IPosition Clone()
Returns
A deep copy of this IPosition instance.
Rotate(double)
Rotate by the specified angle (degrees) around the origin.
Declaration
void Rotate(double angle)
Parameters
angle
The rotation angle in degrees.
RotateAt(double, double, double)
Rotate around a pivot point by the specified angle (degrees).
Scale(double, double)
Scale by the specified factors along X and Y.
ScaleAt(double, double, double, double)
Scale around a pivot point using the specified factors.
Declaration
void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)
Parameters
scaleX
The horizontal scale factor.
scaleY
The vertical scale factor.
centerX
The X coordinate of the scaling center point.
centerY
The Y coordinate of the scaling center point.
Translate(double, double)
Translate by the specified offsets along X and Y.