New to Telerik Document ProcessingStart a free 30-day trial

IPosition

Interface

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:

C#
public interface IPosition

Derived Classes: MatrixPositionSimplePosition

Methods

Reset all transformations to identity.

C#
void Clear()

Create a deep copy of the position including its transformation state.

C#
IPosition Clone()
Returns:

IPosition

A deep copy of this IPosition instance.

Rotate by the specified angle (degrees) around the origin.

C#
void Rotate(double angle)
Parameters:angledouble

The rotation angle in degrees.

Rotate around a pivot point by the specified angle (degrees).

C#
void RotateAt(double angle, double centerX, double centerY)
Parameters:angledouble

The rotation angle in degrees.

centerXdouble

The X coordinate of the rotation center point.

centerYdouble

The Y coordinate of the rotation center point.

Scale by the specified factors along X and Y.

C#
void Scale(double scaleX, double scaleY)
Parameters:scaleXdouble

The horizontal scale factor.

scaleYdouble

The vertical scale factor.

Scale around a pivot point using the specified factors.

C#
void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)
Parameters:scaleXdouble

The horizontal scale factor.

scaleYdouble

The vertical scale factor.

centerXdouble

The X coordinate of the scaling center point.

centerYdouble

The Y coordinate of the scaling center point.

Translate by the specified offsets along X and Y.

C#
void Translate(double offsetX, double offsetY)
Parameters:offsetXdouble

The horizontal translation offset.

offsetYdouble

The vertical translation offset.

Properties

Matrix

Matrix

Current transformation matrix combining scale, rotation, and translation in page coordinates.

C#
Matrix Matrix { get; }
Property Value:

The transformation matrix containing scale, rotation, and translation values.