21 references to FrameStyle
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1781
public static void DrawReversibleFrame(Rectangle rectangle, Color backColor,
FrameStyle
style)
1804
FrameStyle
.Dashed => (HGDIOBJ)PInvokeCore.CreatePen(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1805
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.Design.Tests (3)
System\Windows\Forms\Design\DesignerUtilsTests.cs (3)
185
[InlineData(
FrameStyle
.Dashed, true)]
186
[InlineData(
FrameStyle
.Thick, false)]
187
public void DrawFrame_ShouldUseCorrectBrushBasedOnStyleAndBackColor(
FrameStyle
style, bool useDarkBackground)
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlPaintTests.cs (7)
1680
foreach (
FrameStyle
style in new
FrameStyle
[] {
FrameStyle
.Dashed,
FrameStyle
.Thick,
FrameStyle
.Dashed - 1,
FrameStyle
.Thick + 1 })
1699
public void ControlPaint_DrawReversibleFrame_Invoke_Success(Rectangle rectangle, Color backColor,
FrameStyle
style)