27 references to Edges
System.Windows.Forms (6)
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (4)
120
t_visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, LineWidth, bounds.Height),
Edges
.Left, edgeStyle, EdgeEffects.None);
130
t_visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.Round(x), bounds.Y, LineWidth, bounds.Height),
Edges
.Left, edgeStyle, EdgeEffects.None);
150
t_visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, bounds.Width, LineWidth),
Edges
.Top, edgeStyle, EdgeEffects.None);
160
t_visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, (int)Math.Round(y), bounds.Width, LineWidth),
Edges
.Top, edgeStyle, EdgeEffects.None);
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 (21)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (21)
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));
219
[InvalidEnumData<
Edges
>]
220
public void VisualStyleRenderer_DrawEdge_InvalidEdges_ThrowsInvalidEnumArgumentException(
Edges
edges)
235
Assert.Throws<InvalidEnumArgumentException>("style", () => renderer.DrawEdge(graphics, new Rectangle(1, 2, 3, 4),
Edges
.Bottom, style, EdgeEffects.FillInterior));
245
Assert.Throws<InvalidEnumArgumentException>("effects", () => renderer.DrawEdge(graphics, new Rectangle(1, 2, 3, 4),
Edges
.Bottom, EdgeStyle.Bump, effects));