Interface
IPosition

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:

cs-api-definition
public interface IPosition

Properties

Matrix

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

Declaration

cs-api-definition
Matrix Matrix { get; }

Property Value

Matrix

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

Methods

Clear()

Reset all transformations to identity.

Declaration

cs-api-definition
void Clear()

Clone()

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

Declaration

cs-api-definition
IPosition Clone()

Returns

IPosition

A deep copy of this IPosition instance.

Rotate(double)

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

Declaration

cs-api-definition
void Rotate(double angle)

Parameters

angle

double

The rotation angle in degrees.

RotateAt(double, double, double)

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

Declaration

cs-api-definition
void RotateAt(double angle, double centerX, double centerY)

Parameters

angle

double

The rotation angle in degrees.

centerX

double

The X coordinate of the rotation center point.

centerY

double

The Y coordinate of the rotation center point.

Scale(double, double)

Scale by the specified factors along X and Y.

Declaration

cs-api-definition
void Scale(double scaleX, double scaleY)

Parameters

scaleX

double

The horizontal scale factor.

scaleY

double

The vertical scale factor.

ScaleAt(double, double, double, double)

Scale around a pivot point using the specified factors.

Declaration

cs-api-definition
void ScaleAt(double scaleX, double scaleY, double centerX, double centerY)

Parameters

scaleX

double

The horizontal scale factor.

scaleY

double

The vertical scale factor.

centerX

double

The X coordinate of the scaling center point.

centerY

double

The Y coordinate of the scaling center point.

Translate(double, double)

Translate by the specified offsets along X and Y.

Declaration

cs-api-definition
void Translate(double offsetX, double offsetY)

Parameters

offsetX

double

The horizontal translation offset.

offsetY

double

The vertical translation offset.