Show / Hide Table of Contents

Class GeneralTransform

Provides generalized transformation support for objects, such as points and rectangles.

Inheritance
System.Object
DependencyObject
GeneralTransform
Transform
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public abstract class GeneralTransform : DependencyObject, IDependencyObject

Properties

| Improve this Doc View Source

Inverse

Gets the inverse transformation of this GeneralTransform, if possible.

Declaration
public abstract GeneralTransform Inverse { get; }
Property Value
Type Description
GeneralTransform

An inverse of this instance, if possible; otherwise null.

Methods

| Improve this Doc View Source

Transform(Point)

Transforms the specified point and returns the result.

Declaration
public Point Transform(Point point)
Parameters
Type Name Description
Point point

The point to transform.

Returns
Type Description
Point

The result of transforming point.

Exceptions
Type Condition
System.InvalidOperationException

The transform did not succeed.

| Improve this Doc View Source

TransformBounds(Rect)

When overridden in a derived class, transforms the specified bounding box and returns an axis-aligned bounding box that is exactly large enough to contain it.

Declaration
public abstract Rect TransformBounds(Rect rect)
Parameters
Type Name Description
Rect rect

The bounding box to transform.

Returns
Type Description
Rect

The smallest axis-aligned bounding box possible that contains the transformed rect.

| Improve this Doc View Source

TransformPoint(Point)

Transforms the specified point and returns the result.

Declaration
public Point TransformPoint(Point point)
Parameters
Type Name Description
Point point

The point to transform.

Returns
Type Description
Point

The result of transforming point.

| Improve this Doc View Source

TryTransform(Point, out Point)

When overridden in a derived class, attempts to transform the specified point and returns a value that indicates whether the transformation was successful.

Declaration
public abstract bool TryTransform(Point inPoint, out Point outPoint)
Parameters
Type Name Description
Point inPoint

The point to transform.

Point outPoint

The result of transforming inPoint.

Returns
Type Description
System.Boolean

true if inPoint was transformed; otherwise, false.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source