# FormatInto

> Writes the formatting result into an IOutput instance.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings](/engine/6000.7/script-reference/unity/smartstrings.md)
* **Assembly:** UnityEngine.SmartStringsModule

## FormatInto(IOutput, string, Object\[])

Writes the formatting result into an [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) instance.

```csharp
public void FormatInto(IOutput output, string format, params object[] args)
```

### Parameters

**** (\[IOutput]\(/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput)): The [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) where the result is written to.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The format string.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): The objects to format.

## FormatInto(IOutput, string, IList\<Object>)

Writes the formatting result into an [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) instance.

```csharp
public void FormatInto(IOutput output, string format, IList<object> args)
```

### Parameters

**** (\[IOutput]\(/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput)): The [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) where the result is written to.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The format string.**** (\[IList\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The objects to format.

## FormatInto(IOutput, IFormatProvider, string, IList\<Object>)

Writes the formatting result into an [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) instance.

```csharp
public void FormatInto(IOutput output, IFormatProvider provider, string format, IList<object> args)
```

### Parameters

**** (\[IOutput]\(/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput)): The [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) where the result is written to.**** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)): The IFormatProvider to use.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The format string.**** (\[IList\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The objects to format.

## FormatInto(IOutput, IFormatProvider, Format, Object\[])

Writes the formatting result into an [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) instance.

```csharp
public void FormatInto(IOutput output, IFormatProvider provider, Format format, params object[] args)
```

### Parameters

**** (\[IOutput]\(/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput)): The [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) where the result is written to.**** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)): The IFormatProvider to use.**** (\[Format]\(/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format)): An instance of [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) that was returned by [Parser.ParseFormat](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/parser/parseformat.md).**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): The objects to format.

## FormatInto(IOutput, IFormatProvider, Format, IList\<Object>)

Writes the formatting result into an [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) instance.

```csharp
public void FormatInto(IOutput output, IFormatProvider provider, Format formatParsed, IList<object> args)
```

### Parameters

**** (\[IOutput]\(/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput)): The [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) where the result is written to.**** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)): The IFormatProvider to use.**** (\[Format]\(/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format)): An instance of [Format](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/format.md) that was returned by [Parser.ParseFormat](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/parser/parseformat.md).**** (\[IList\<Object>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The objects to format.
