Op Englesch liesen Editéieren

Deelen iwwer


StringBuilder.AppendInterpolatedStringHandler.AppendFormatted Method

Definition

Overloads

AppendFormatted(ReadOnlySpan<Char>)

Writes the specified character span to the handler.

AppendFormatted(String)

Writes the specified value to the handler.

AppendFormatted(Object, Int32, String)

Writes the specified value to the handler.

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

Writes the specified string of chars to the handler.

AppendFormatted(String, Int32, String)

Writes the specified value to the handler.

AppendFormatted<T>(T)

Writes the specified value to the handler.

AppendFormatted<T>(T, Int32)

Writes the specified value to the handler.

AppendFormatted<T>(T, String)

Writes the specified value to the handler.

AppendFormatted<T>(T, Int32, String)

Writes the specified value to the handler.

AppendFormatted(ReadOnlySpan<Char>)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified character span to the handler.

C#
public void AppendFormatted(ReadOnlySpan<char> value);

Parameters

value
ReadOnlySpan<Char>

The span to write.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted(String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted(string? value);

Parameters

value
String

The value to write.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted(Object, Int32, String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted(object? value, int alignment = 0, string? format = default);

Parameters

value
Object

The value to write.

alignment
Int32

The minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.

format
String

The format string.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified string of chars to the handler.

C#
public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = default);

Parameters

value
ReadOnlySpan<Char>

The span to write.

alignment
Int32

The minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.

format
String

The format string.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted(String, Int32, String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted(string? value, int alignment = 0, string? format = default);

Parameters

value
String

The value to write.

alignment
Int32

The minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.

format
String

The format string.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted<T>(T)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted<T>(T value);

Type Parameters

T

The type of the value to write.

Parameters

value
T

The value to write.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted<T>(T, Int32)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted<T>(T value, int alignment);

Type Parameters

T

The type of the value to write.

Parameters

value
T

The value to write.

alignment
Int32

The minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted<T>(T, String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted<T>(T value, string? format);

Type Parameters

T

The type of the value to write.

Parameters

value
T

The value to write.

format
String

The format string.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10

AppendFormatted<T>(T, Int32, String)

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

Writes the specified value to the handler.

C#
public void AppendFormatted<T>(T value, int alignment, string? format);

Type Parameters

T

The type of the value to write.

Parameters

value
T

The value to write.

alignment
Int32

The minimum number of characters that should be written for this value. If the value is negative, it indicates left-aligned and the required minimum is the absolute value.

format
String

The format string.

Applies to

.NET 10 an aner Versiounen
Produkt Versiounen
.NET 6, 7, 8, 9, 10