Size3D.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToString() | |
ToString(IFormatProvider) |
ToString()
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.
Applies to
ToString(IFormatProvider)
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
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기