SelectObjectScope struct SelectObjectScope Helper to scope selecting a GDI object into an HDC. Restores the original object into the HDC when disposed. Documentation Code public HGDIOBJ PreviousObject { get; } public SelectObjectScope(HDC hdc, HGDIOBJ object) Selects object into the given hdc using SelectObject. public void Dispose()