<PackageReference Include="System.Drawing.Common" Version="10.0.4" />

Windows.Win32.Graphics.Gdi.SaveDcScope

struct SaveDcScope
Helper to scope lifetime of a saved device context state.
namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SaveDcScope { public HDC HDC { get; } public SaveDcScope(HDC hdc); public void Dispose(); } }