TextSpanFormatter.AddFormatter 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddFormatter<T>(Func<T,TextSpan>)
public:
generic <typename T>
void AddFormatter(Func<T, System::CommandLine::Rendering::TextSpan ^> ^ format);
public void AddFormatter<T>(Func<T,System.CommandLine.Rendering.TextSpan> format);
member this.AddFormatter : Func<'T, System.CommandLine.Rendering.TextSpan> -> unit
Public Sub AddFormatter(Of T) (format As Func(Of T, TextSpan))
類型參數
- T
參數
適用於
AddFormatter<T>(Func<T,FormattableString>)
public:
generic <typename T>
void AddFormatter(Func<T, FormattableString ^> ^ format);
public void AddFormatter<T>(Func<T,FormattableString> format);
member this.AddFormatter : Func<'T, FormattableString> -> unit
Public Sub AddFormatter(Of T) (format As Func(Of T, FormattableString))
類型參數
- T
參數
- format
- Func<T,FormattableString>