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

定义

此类型或成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不可直接在代码中使用。This type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

 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 format to use.

provider
IFormatProvider

要用于设置值格式的提供程序。The provider to use to format the value.

返回

使用指定格式的当前实例的值。The value of the current instance in the specified format.

实现

适用于

另请参阅