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
)

Parameters

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.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft