Point.ToString 方法

定义

重载

ToString()

创建此 StringPoint 表示形式。Creates a String representation of this Point.

ToString(IFormatProvider)

使用指定的区域性特定的格式设置信息创建此 PointString 表示形式。Creates a String representation of this Point using the specified culture-specific formatting information..

注解

此结构表示 Windows 运行时 (WinRT) 结构的 .NET 投影 PointThis struct represents the .NET projection of the Windows Runtime (WinRT) Point struct. 有关详细信息,请参阅 UWP API 参考中的 For more information, see Point in the UWP API reference.

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

返回

String

一个 String,其中包含此 Point 结构的XY 值。A String containing the X and Y values of this Point struct.

适用于

ToString(IFormatProvider)

使用指定的区域性特定的格式设置信息创建此 PointString 表示形式。Creates a String representation of this Point using the specified culture-specific formatting information..

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

区域性特定的格式设置信息。Culture-specific formatting information.

返回

String

一个 String,其中包含此 Point 结构的XY 值。A String containing the X and Y values of this Point struct.

适用于