Visual3D::TransformToDescendant Method (Visual3D^)
.NET Framework (current version)
Returns a transform that can be used to transform coordinates from this Visual3D object to the specified Visual3D descent object.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- descendant
-
Type:
System.Windows.Media.Media3D::Visual3D^
The Visual3D to which the coordinates are transformed.
Return Value
Type: System.Windows.Media.Media3D::GeneralTransform3D^A GeneralTransform3D object; or null, if the transform from descendant to this object is non-invertible.
| Exception | Condition |
|---|---|
| ArgumentNullException | descendant is null. |
| ArgumentException | This object is not an ancestor of the specified descendant object. |
| InvalidOperationException | The Visual3D objects are not related. |
The TransformToDescendant method is introduced in .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.
.NET Framework
Available since 3.0
Available since 3.0
Show: