Point.ToString 메서드

정의

String 구조체의 Point 표현을 만듭니다.

오버로드

ToString()

StringPoint 표현을 만듭니다.

ToString(IFormatProvider)

StringPoint 표현을 만듭니다.

ToString()

StringPoint 표현을 만듭니다.

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

반환

String

String 구조체의 XY 값이 포함된 Point입니다.

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다 합니다 ToString 메서드를를 String 표현한을 Point 구조입니다.

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

적용 대상

ToString(IFormatProvider)

StringPoint 표현을 만듭니다.

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

매개 변수

provider
IFormatProvider

문화권별 형식 지정 정보입니다.

반환

String

String 구조체의 XY 값이 포함된 Point입니다.

적용 대상