11 references to TryGetGraphics
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
436Graphics? graphics = deviceContext.TryGetGraphics(create: true);
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (4)
78Graphics? graphics = deviceContext.TryGetGraphics(create: true); 105Graphics? graphics = deviceContext.TryGetGraphics(create: true); 116Graphics? graphics = deviceContext.TryGetGraphics(create: true); 246Graphics? graphics = deviceContext.TryGetGraphics(create: true);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
723else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 782else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 846else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 920else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 1150Graphics? graphics = context.TryGetGraphics(create: true);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
257deviceContext.TryGetGraphics(create: true)?.FillPolygon(SystemBrushes.ControlText, arrow);