21 references to EdgeStyle
System.Windows.Forms (4)
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (2)
108
public static void DrawHorizontalTicks(Graphics g, Rectangle bounds, int numTicks,
EdgeStyle
edgeStyle)
138
public static void DrawVerticalTicks(Graphics g, Rectangle bounds, int numTicks,
EdgeStyle
edgeStyle)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
267
public Rectangle DrawEdge(IDeviceContext dc, Rectangle bounds, Edges edges,
EdgeStyle
style, EdgeEffects effects)
275
internal unsafe Rectangle DrawEdge(HDC dc, Rectangle bounds, Edges edges,
EdgeStyle
style, EdgeEffects effects)
System.Windows.Forms.Tests (17)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (17)
186
yield return new object[] { new Rectangle(1, 2, 3, 4), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
187
yield return new object[] { new Rectangle(1, 2, 3, 4), Edges.Top,
EdgeStyle
.Bump, EdgeEffects.Mono };
188
yield return new object[] { new Rectangle(1, 2, 3, 4), Edges.Left | Edges.Top | Edges.Right | Edges.Bottom | Edges.Diagonal,
EdgeStyle
.Sunken, EdgeEffects.FillInterior | EdgeEffects.Flat | EdgeEffects.Soft | EdgeEffects.Mono };
189
yield return new object[] { new Rectangle(0, 0, 3, 4), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
190
yield return new object[] { new Rectangle(0, 0, 0, 4), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
191
yield return new object[] { new Rectangle(0, 0, -1, 4), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
192
yield return new object[] { new Rectangle(0, 0, 3, 0), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
193
yield return new object[] { new Rectangle(0, 0, 3, -1), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
194
yield return new object[] { new Rectangle(0, 0, 0, 0), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
195
yield return new object[] { new Rectangle(0, 0, -1, -1), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
196
yield return new object[] { new Rectangle(-1, -2, 3, 4), Edges.Left,
EdgeStyle
.Raised, EdgeEffects.None };
201
public void VisualStyleRenderer_DrawEdge_Invoke_Success(Rectangle bounds, Edges edges,
EdgeStyle
style, EdgeEffects effects)
215
Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawEdge(null, new Rectangle(1, 2, 3, 4), Edges.Top,
EdgeStyle
.Bump, EdgeEffects.FillInterior));
225
Assert.Throws<InvalidEnumArgumentException>("edges", () => renderer.DrawEdge(graphics, new Rectangle(1, 2, 3, 4), edges,
EdgeStyle
.Bump, EdgeEffects.FillInterior));
229
[InvalidEnumData<
EdgeStyle
>]
230
public void VisualStyleRenderer_DrawEdge_InvalidStyle_ThrowsInvalidEnumArgumentException(
EdgeStyle
style)
245
Assert.Throws<InvalidEnumArgumentException>("effects", () => renderer.DrawEdge(graphics, new Rectangle(1, 2, 3, 4), Edges.Bottom,
EdgeStyle
.Bump, effects));