Rect3D.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 實作 (Implementation) 類型的預設格式。null to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider

IFormatProvider,用來格式化數值。The IFormatProvider to use to format the value.

-或--or- null,用來從作業系統的目前地區設定 (Locale) 取得數值格式資訊。null 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.

實作

適用於