New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public abstract class Transform

Inheritance: objectTransform

Derived Classes: MatrixTransformRotateTransformScaleTransformTransformGroupTranslateTransform

Properties

Gets an identity transform.

C#
public static Transform Identity { get; }
Property Value:

An identity transform.

Gets the inverse of this transform, if it exists.

C#
public virtual Transform Inverse { get; }
Property Value:

The inverse of this transform, if it exists; otherwise, null.

Gets the current transformation as a Matrix object.

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

The current matrix transformation.

Methods

Transforms the specified bounding box and returns an axis-aligned bounding box that is exactly large enough to contain it.

C#
public virtual Rect TransformBounds(Rect rect)
Parameters:rectRect

The bounding box to transform.

Returns:

Rect

The smallest axis-aligned bounding box that can contain the transformed rect.

Attempts to transform the specified point and returns a value that indicates whether the transformation was successful.

C#
public virtual Point TransformPoint(Point inPoint)
Parameters:inPointPoint

The point to transform.

Returns:

Point

true if inPoint was transformed; otherwise, false.

Attempts to transform the specified point and returns a value that indicates whether the transformation was successful.

C#
public virtual bool TryTransform(Point inPoint, out Point result)
Parameters:inPointPoint

The point to transform.

resultPoint

The result of transforming inPoint.

Returns:

bool

true if inPoint was transformed; otherwise, false.