Interface IPosition
Contract for positioning and transforming elements using a 2D matrix (scale, rotate, translate) within fixed documents.
Namespace: Telerik.Windows.Documents.Fixed.Model.Data
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public interface IPosition
Properties
Matrix
Current transformation matrix combining scale, rotation, and translation in page coordinates.
Declaration
Matrix Matrix { get; }
Property Value
|
System.Windows.Media.Matrix
The transformation matrix containing scale, rotation, and translation values. |
Methods
Clear()
Reset all transformations to identity.
Declaration
void Clear()
Clone()
Create a deep copy of the position including its transformation state.
Declaration
IPosition Clone()
Returns
|
IPosition
A deep copy of this IPosition instance. |
Rotate(Double)
Rotate by the specified angle (degrees) around the origin.
Declaration
void Rotate(double angle)
Parameters
|
System.Double
angle
The rotation angle in degrees. |
RotateAt(Double, Double, Double)
Rotate around a pivot point by the specified angle (degrees).
Declaration
void RotateAt(double angle, double centerX, double centerY)
Parameters
|
System.Double
angle
The rotation angle in degrees. |
|
System.Double
centerX
The X coordinate of the rotation center point. |
|
System.Double
centerY
The Y coordinate of the rotation center point. |
Scale(Double, Double)
Scale by the specified factors along X and Y.
Declaration
void Scale(double scaleX, double scaleY)
Parameters
|
System.Double
scaleX
The horizontal scale factor. |
|
System.Double
scaleY
The vertical scale factor. |
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
|
System.Double
scaleX
The horizontal scale factor. |
|
System.Double
scaleY
The vertical scale factor. |
|
System.Double
centerX
The X coordinate of the scaling center point. |
|
System.Double
centerY
The Y coordinate of the scaling center point. |
Translate(Double, Double)
Translate by the specified offsets along X and Y.
Declaration
void Translate(double offsetX, double offsetY)
Parameters
|
System.Double
offsetX
The horizontal translation offset. |
|
System.Double
offsetY
The vertical translation offset. |