4 instantiations of Scope
System.Windows.Forms.Primitives (4)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (3)
37return new PenCache.Scope(pen); 54return new SolidBrushCache.Scope(solidBrush); 77=> width == 1 ? GetPenScope(color) : new PenCache.Scope(new Pen(color, width));
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
64public Scope CreateScope() => new(this);
16 references to Scope
System.Windows.Forms (2)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1897using var bright = GdiPlusCache.GetCachedPenScope(LightLight(backColor)); 1898using var dark = GdiPlusCache.GetCachedPenScope(Dark(backColor));
System.Windows.Forms.Primitives (9)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (5)
27private static PenCache.Scope GetPenScope(Color color) 44private static SolidBrushCache.Scope GetSolidBrushScope(Color color) 73internal static PenCache.Scope GetCachedPenScope(this Color color) => GetPenScope(color); 76internal static PenCache.Scope GetCachedPenScope(this Color color, int width) 80internal static SolidBrushCache.Scope GetCachedSolidBrushScope(this Color color) => GetSolidBrushScope(color);
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
64public Scope CreateScope() => new(this);
System\Windows\Forms\RefCountedCache.cs (2)
9/// Cache that ref counts handed-out objects via "scopes" <see cref="Scope"/>. 13/// type you would use here. <see cref="Scope"/> is implicitly convertible to this type.
System\Windows\Forms\RefCountedCache.Scope.cs (1)
60public static implicit operator TObject(in Scope scope)
System.Windows.Forms.Tests (5)
Text\FontMetrics.cs (5)
25using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 44using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 65using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 83using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 140using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);