TextSpanFormatter.AddFormatter Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
generic <typename T>
void AddFormatter(Func<T, System::CommandLine::Rendering::TextSpan ^> ^ format);
C#
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))
Type Parameters
- T
Parameters
Applies to
.NET Standard 2.0 (package-provided)
Produkt | Verzie |
---|---|
.NET Standard | 2.0 (package-provided) |
public:
generic <typename T>
void AddFormatter(Func<T, FormattableString ^> ^ format);
C#
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))
Type Parameters
- T
Parameters
- format
- Func<T,FormattableString>
Applies to
.NET Standard 2.0 (package-provided)
Produkt | Verzie |
---|---|
.NET Standard | 2.0 (package-provided) |
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: