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