23 references to ApplyGraphicsProperties
System.Drawing.Common (5)
System\Drawing\Graphics.cs (3)
3287
(HDC hdc, int saveState) IGraphicsContextInfo.GetHdc(
ApplyGraphicsProperties
apply, bool alwaysSaveState)
3289
bool applyTransform = apply.HasFlag(
ApplyGraphicsProperties
.TranslateTransform);
3290
bool applyClipping = apply.HasFlag(
ApplyGraphicsProperties
.Clipping);
System\Drawing\Icon.cs (2)
371
using DeviceContextHdcScope hdc = new(graphics,
ApplyGraphicsProperties
.Clipping);
387
using DeviceContextHdcScope hdc = new(graphics,
ApplyGraphicsProperties
.Clipping);
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 (11)
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)
3483
using DeviceContextHdcScope toolStripHDC = new(toolstripGraphics,
ApplyGraphicsProperties
.Clipping);
System\Windows\Forms\Rendering\TextRenderer.cs (9)
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;
635
Debug.Assert(apply.HasFlag(
ApplyGraphicsProperties
.Clipping)
640
Debug.Assert(apply.HasFlag(
ApplyGraphicsProperties
.TranslateTransform)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\DeviceContextExtensions.cs (2)
182
ApplyGraphicsProperties
applyProperties =
ApplyGraphicsProperties
.All) => deviceContext switch