Size3D Explicit Conversion (Size3D to Point3D)

Converts this Size3D structure into a Point3D structure.

Namespace:  System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public static explicit operator Point3D (
	Size3D size


Type: System.Windows.Media.Media3D.Size3D

The size to convert.

Return Value

Type: System.Windows.Media.Media3D.Point3D
The result of converting size.

The following example shows how to explicitly convert a Size3D structure into a Point3D structure.

// Explicitly converts a Size3D structure into a Point3D structure 
// Returns a Vector3D.

Size3D size1 = new Size3D(2, 4, 6);
Point3D point1 = new Point3D();

point1 = (Point3D)size1;
// point1 is equal to (2, 4, 6) 

// Displaying Results
syntaxString = "point1 = (Point3D)size1;";
resultType = "Point3D";
operationString = "Expliciting casting a Size3D into a Point3D";
ShowResults(point1.ToString(), syntaxString, resultType, operationString);

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft