16 references to ApplyGraphicsProperties
System.Private.Windows.GdiPlus (5)
System\Drawing\IGraphicsContextInfo.cs (1)
10
(HDC hdc, int saveState) GetHdc(
ApplyGraphicsProperties
apply, bool alwaysSaveState);
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (4)
60
applyGraphicsState ?
ApplyGraphicsProperties
.All :
ApplyGraphicsProperties
.None,
75
ApplyGraphicsProperties
applyGraphicsState,
113
bool needToApplyProperties = applyGraphicsState !=
ApplyGraphicsProperties
.None;
System.Windows.Forms (9)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.ColorOptions.cs (1)
111
using DeviceContextHdcScope hdc = _deviceContext.ToHdcScope(
ApplyGraphicsProperties
.None);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3488
using DeviceContextHdcScope toolStripHDC = new(toolstripGraphics,
ApplyGraphicsProperties
.Clipping);
System\Windows\Forms\Rendering\TextRenderer.cs (7)
600
/// Gets the proper <see cref="
ApplyGraphicsProperties
"/> flags for the given <paramref name="textFormatFlags"/>.
602
internal static
ApplyGraphicsProperties
GetApplyStateFlags(IDeviceContext deviceContext, TextFormatFlags textFormatFlags)
606
return
ApplyGraphicsProperties
.None;
609
var
apply =
ApplyGraphicsProperties
.None;
612
apply |=
ApplyGraphicsProperties
.Clipping;
617
apply |=
ApplyGraphicsProperties
.TranslateTransform;
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
182
ApplyGraphicsProperties
applyProperties =
ApplyGraphicsProperties
.All) => deviceContext switch