Windows.Win32.Graphics.Gdi.SelectObjectScope struct SelectObjectScope Helper to scope selecting a GDI object into an HDC. Restores the original object into the HDC when disposed. Documentation Code namespace Windows.Win32.Graphics.Gdi { internal readonly ref struct SelectObjectScope { public HGDIOBJ PreviousObject { get; } public SelectObjectScope(HDC hdc, HGDIOBJ object); public void Dispose(); } }