18 references to FrameStyle
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1785public static void DrawReversibleFrame(Rectangle rectangle, Color backColor, FrameStyle style) 1808FrameStyle.Dashed => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value, 1809FrameStyle.Thick => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\ComponentTray.cs (1)
1210ControlPaint.DrawReversibleFrame(_mouseDragWorkspace, BackColor, FrameStyle.Dashed);
System\Windows\Forms\Design\DesignerUtils.cs (2)
226public static void DrawFrame(Graphics g, Region resizeBorder, FrameStyle style, Color backColor) 236FrameStyle.Dashed => new HatchBrush(HatchStyle.Percent50, color, Color.Transparent),
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
25private FrameStyle _mouseDragFrame; // the frame style of this mouse drag 1700private static int FrameWidth(FrameStyle style) 1702return (style == FrameStyle.Dashed ? 1 : 2); 1726_mouseDragFrame = (_mouseDragTool is null) ? FrameStyle.Dashed : FrameStyle.Thick;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlPaintTests.cs (7)
1678foreach (FrameStyle style in new FrameStyle[] { FrameStyle.Dashed, FrameStyle.Thick, FrameStyle.Dashed - 1, FrameStyle.Thick + 1 }) 1697public void ControlPaint_DrawReversibleFrame_Invoke_Success(Rectangle rectangle, Color backColor, FrameStyle style)