<PackageReference Include="System.Drawing.Common" Version="11.0.0-preview.1.26104.118" />

Windows.Win32.Graphics.Gdi.SetTextAlignmentScope

Helper to scope selecting a given text alignment mode into a HDC. Restores the original text alignment mode into the HDC when disposed.
namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SetTextAlignmentScope { public SetTextAlignmentScope(HDC hdc, TEXT_ALIGN_OPTIONS ta); public void Dispose(); } }