Size3D.ToString Size3D.ToString Size3D.ToString Size3D.ToString Method

Definition

Creates a String representation of this Size3D structure.

Overloads

ToString() ToString() ToString() ToString()

Creates a String representation of this Size3D structure.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

Creates a String representation of this Size3D structure.

ToString() ToString() ToString() ToString()

Creates a String representation of this Size3D structure.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

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

Examples

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);
' Gets a string representation of a Size3D Structure

Dim size1 As New Size3D(2,4,6)
Dim sizeString As String

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)

Remarks

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

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

Creates a String representation of this Size3D structure.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

Parameters

provider
IFormatProvider IFormatProvider IFormatProvider IFormatProvider

Culture-specific formatting information.

Returns

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

Remarks

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

Applies to