10 references to Restore
System.Drawing.Common.Tests (7)
mono\System.Drawing\GraphicsTests.cs (5)
310
g.
Restore
(state_modified);
324
g.
Restore
(state_default);
1121
g.
Restore
(gs2);
1125
g.
Restore
(gs1);
1135
Assert.Throws<NullReferenceException>(() => g.
Restore
(null));
System\Drawing\Graphics_GetContextTests.Core.cs (1)
126
graphics.
Restore
(state);
System\Drawing\Graphics_GetContextTests.cs (1)
129
graphics.
Restore
(state);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3658
g.
Restore
(graphicsState);
System\Windows\Forms\Rendering\PaintEventArgs.cs (1)
111
graphics.
Restore
(_savedGraphicsState);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GraphicsStateScope.cs (1)
23
public void Dispose() => _graphics.
Restore
(_state);