skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SimplePosition

Simple implementation of position and transformation operations.

Inheritance
System.Object
SimplePosition
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.Data
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class SimplePosition : IPosition

Constructors

SimplePosition()

Initializes a new instance of the SimplePosition class with default transformation values.

Declaration
public SimplePosition()

Properties

Default

Gets a default simple position instance with identity transformation.

Declaration
public static SimplePosition Default { get; }
Property Value
SimplePosition

A new SimplePosition instance with default transformation values.

Matrix

Gets the transformation matrix calculated from the current transformation properties.

Declaration
public Matrix Matrix { get; }
Property Value
System.Windows.Media.Matrix

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

Implements
IPosition.Matrix

Methods

Clear()

Resets all transformation values to their default state.

Declaration
public void Clear()
Implements
IPosition.Clear()

Clone()

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

Declaration
public IPosition Clone()
Returns
IPosition

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

Implements
IPosition.Clone()

Rotate(Double)

Applies rotation transformation by the specified angle around the origin.

Declaration
public void Rotate(double angle)
Parameters
System.Double angle

The rotation angle in degrees.

Implements
IPosition.Rotate(Double)

RotateAt(Double, Double, Double)

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

Declaration
public 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.

Implements
IPosition.RotateAt(Double, Double, Double)

Scale(Double, Double)

Applies scaling transformation by the specified factors.

Declaration
public void Scale(double scaleX, double scaleY)
Parameters
System.Double scaleX

The horizontal scale factor.

System.Double scaleY

The vertical scale factor.

Implements
IPosition.Scale(Double, Double)

ScaleAt(Double, Double, Double, Double)

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

Declaration
public 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.

Implements
IPosition.ScaleAt(Double, Double, Double, Double)

Translate(Double, Double)

Applies translation transformation by the specified offset values.

Declaration
public void Translate(double offsetX, double offsetY)
Parameters
System.Double offsetX

The horizontal translation offset.

System.Double offsetY

The vertical translation offset.

Implements
IPosition.Translate(Double, Double)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.