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
Available since 3.0
Return to top