Size3D.ToString Method ()

 

Creates a String representation of this Size3D structure.

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

public override string ToString()

Return Value

Type: System.String

Returns a String containing the X, Y, and Z values of this Size3D structure.

If a Size3D structure is empty, the string "empty" is returned, rather than the X, Y, and Z values of the Size3D structure.

The following example shows how to get a string representation of a Size3D structure.

                  // Gets a string representation of a Size3D Structure

                  Size3D size1 = new Size3D(2,4,6);
                  String sizeString;

                  sizeString = size1.ToString();
                  // sizeString is equal to "2,4,6"

                  // Displaying Results
resultType = "String";
                  syntaxString = "sizeString = size1.ToString();";
                  operationString = "Getting the ToString of size1";
                  ShowResults(sizeString.ToString(), syntaxString, resultType, operationString);

.NET Framework
Available since 3.0
Return to top
Show: