# AdaptFontEventArgs.AdaptedFontName Property

> Gets or sets the adapted font. When the event occurs the property contains the name of the font which replaces the original font. If the property is changed, TextControl uses the changed font to replace the original font. The font must be one of the fonts listed in the array of supported fonts. This array can be obtained with the AdaptFontEventArgs.SupportedFonts property.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > AdaptFontEventArgs.AdaptedFontName Property
- **387 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/adaptedfontname-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/adaptedfontname-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/adaptedfontname-property/llms-full.txt

---

### Description

Gets or sets the adapted font. When the event occurs the property contains the name of the font which replaces the original font. If the property is changed, TextControl uses the changed font to replace the original font. The font must be one of the fonts listed in the array of supported fonts. This array can be obtained with the [AdaptFontEventArgs.SupportedFonts](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/supportedfonts-property/llms-full.txt) property.

### Syntax

```csharp
public string AdaptedFontName { get; set; }
```

```vbnet
Public Property AdaptedFontName As String
```

### Examples

The following example uses `AdaptFontEventArgs.AdaptedFontName` while handling `AdaptFont`.

```csharp
textControl.AdaptFont += (_, e) =>
{
    Console.WriteLine($"Adapted Font Name: {e.AdaptedFontName}");
};
```

```vbnet
AddHandler textControl.AdaptFont,
    Sub(sender, e)
        Console.WriteLine($"Adapted Font Name: {e.AdaptedFontName}")
    End Sub
```

---

## Nearby

- **Previous:** [AdaptFontEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/llms-full.txt)
- **Next:** [AdaptFontEventArgs.FontName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/adaptfonteventargs/fontname-property/llms-full.txt)
