Point3D.IFormattable.ToString(String, IFormatProvider) 方法

定义

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. 有关此成员的说明,请参见 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider provider);
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString

参数

format
String

指定要使用的格式的字符串。The string specifying the format to use.

-or- null,表示使用为 IFormattable 实现的类型定义的默认格式。null to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider

用于格式化该值的 IFormatProviderThe IFormatProvider to use to format the value.

-or- 从操作系统的当前区域设置中获取数字格式信息的 nullnull to obtain the numeric format information from the current locale setting of the operating system.

返回

一个字符串,包含采用指定格式的当前实例的值。A string containing the value of the current instance in the specified format.

实现

适用于