New to Telerik Document ProcessingStart a free 30-day trial

Lightweight IPosition that composes transforms from scale, rotate, and translate properties at runtime.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Data

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class SimplePosition : IPosition

Inheritance: objectSimplePosition

Implements: IPosition

Constructors

Create a new instance initialized to identity (no translation, unit scale, 0° rotation).

C#
public SimplePosition()

Methods

Resets all transformation values to their default state.

C#
public void Clear()

Implements: IPosition.Clear()

Creates a deep copy of the current simple position with all transformation values.

C#
public IPosition Clone()
Returns:

IPosition

A new SimplePosition instance that is a copy of this instance.

Implements: IPosition.Clone()

Applies rotation transformation by the specified angle around the origin.

C#
public void Rotate(double angle)
Parameters:angledouble

The rotation angle in degrees.

Implements: IPosition.Rotate(double)

Applies rotation transformation by the specified angle around a center point.

C#
public 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.

Implements: IPosition.RotateAt(double, double, double)

Applies scaling transformation by the specified factors.

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

The horizontal scale factor.

scaleYdouble

The vertical scale factor.

Implements: IPosition.Scale(double, double)

Applies scaling transformation by the specified factors around a center point.

C#
public 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.

Implements: IPosition.ScaleAt(double, double, double, double)

Applies translation transformation by the specified offset values.

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

The horizontal translation offset.

offsetYdouble

The vertical translation offset.

Implements: IPosition.Translate(double, double)

Properties

Returns a new instance preconfigured with identity transformation.

C#
public static SimplePosition Default { get; }
Property Value:

A new SimplePosition instance with default transformation values.

Matrix

Matrix

Transformation matrix computed from the current scale, rotation, and translation values.

C#
public Matrix Matrix { get; }
Property Value:

The computed transformation matrix that combines scale, rotation, and translation operations.

Implements: IPosition.Matrix