4 instantiations of Scope
System.Windows.Forms.Primitives (4)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (3)
37
return new PenCache.
Scope
(pen);
54
return new SolidBrushCache.
Scope
(solidBrush);
77
=> width == 1 ? GetPenScope(color) : new PenCache.
Scope
(new Pen(color, width));
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
64
public Scope CreateScope() =>
new
(this);
16 references to Scope
System.Windows.Forms (2)
System\Windows\Forms\Rendering\ControlPaint.cs (2)
1897
using
var
bright = GdiPlusCache.GetCachedPenScope(LightLight(backColor));
1898
using
var
dark = GdiPlusCache.GetCachedPenScope(Dark(backColor));
System.Windows.Forms.Primitives (9)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (5)
27
private static PenCache.
Scope
GetPenScope(Color color)
44
private static SolidBrushCache.
Scope
GetSolidBrushScope(Color color)
73
internal static PenCache.
Scope
GetCachedPenScope(this Color color) => GetPenScope(color);
76
internal static PenCache.
Scope
GetCachedPenScope(this Color color, int width)
80
internal static SolidBrushCache.
Scope
GetCachedSolidBrushScope(this Color color) => GetSolidBrushScope(color);
System\Windows\Forms\RefCountedCache.CacheEntry.cs (1)
64
public
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)
60
public static implicit operator TObject(in
Scope
scope)
System.Windows.Forms.Tests (5)
Text\FontMetrics.cs (5)
25
using
var
hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);
44
using
var
hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);
65
using
var
hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);
83
using
var
hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);
140
using
var
hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);