# Point.ToString Method

## Definition

String 구조체의 Point 표현을 만듭니다.Creates a String representation of this Point structure.

 ToString() 이 String의 Point 표현을 만듭니다.Creates a String representation of this Point. ToString(IFormatProvider) 이 String의 Point 표현을 만듭니다.Creates a String representation of this Point.

## ToString()

StringPoint 표현을 만듭니다.Creates a String representation of this Point.

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

#### Returns

String

String 구조체의 XY 값이 포함된 Point입니다.A String containing the X and Y values of this Point structure.

### Examples

다음 예제에서는 사용 하는 방법을 보여 줍니다 합니다 ToString 메서드를를 String 표현한을 Point 구조입니다.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
``````

## ToString(IFormatProvider)

StringPoint 표현을 만듭니다.Creates a String representation of this Point.

``````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

String

String 구조체의 XY 값이 포함된 Point입니다.A String containing the X and Y values of this Point structure.