Point.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
A String containing the X and Y values of this Point structure.
Examples
The following example shows how to use the ToString method to get a String representation of a Point structure.
private String toStringExample()
{
Point point1 = new Point(10, 5);
// Get a string representation of a Point structure.
// pointString is equal to 10,5 .
String stringResult = point1.ToString();
return stringResult;
}
Private Function toStringExample() As String
Dim point1 As New Point(10, 5)
' Get a string representation of a Point structure.
' pointString is equal to 10,5 .
Dim stringResult As String = point1.ToString()
Return stringResult
End Function
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
A String containing the X and Y values of this Point structure.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET