29 references to ButtonRenderer
System.Windows.Forms (11)
System\Windows\Forms\Control.cs (2)
8298
ButtonRenderer
.DrawParentBackground(g, rectangle, this);
8302
ButtonRenderer
.DrawParentBackground(e, rectangle, this);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (3)
51
if (
ButtonRenderer
.IsBackgroundPartiallyTransparent(pbState))
53
ButtonRenderer
.DrawParentBackground(e, bounds, Control);
56
ButtonRenderer
.DrawButtonForHandle(
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (3)
19
/// <inheritdoc cref="
ButtonRenderer
.RenderMatchingApplicationState"/>
24
/// <inheritdoc cref="
ButtonRenderer
.IsBackgroundPartiallyTransparent(PushButtonState)"/>
38
/// <inheritdoc cref="
ButtonRenderer
.DrawParentBackground(Graphics, Rectangle, Control)"/>
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (3)
20
/// <inheritdoc cref="
ButtonRenderer
.RenderMatchingApplicationState"/>
25
/// <inheritdoc cref="
ButtonRenderer
.IsBackgroundPartiallyTransparent(PushButtonState)"/>
39
/// <inheritdoc cref="
ButtonRenderer
.DrawParentBackground(Graphics, Rectangle, Control)"/>
System.Windows.Forms.Design (3)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
199
ButtonRenderer
.DrawButton(g, bounds, State);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (2)
70
ButtonRenderer
.DrawButton(g, new Rectangle(-1, -1, Width + 2, Height + 2), "…", Font, Focused, buttonState);
114
ButtonRenderer
.DrawButton(
System.Windows.Forms.Tests (15)
System\Windows\Forms\ButtonRendererTests.cs (15)
28
Exception? exception = Record.Exception(() =>
ButtonRenderer
.DrawButton(graphics, bounds, state));
40
ButtonRenderer
.RenderMatchingApplicationState = false;
41
Exception? exception = Record.Exception(() =>
ButtonRenderer
.DrawButton(graphics, bounds, state));
44
ButtonRenderer
.RenderMatchingApplicationState = true;
45
Exception? exception2 = Record.Exception(() =>
ButtonRenderer
.DrawButton(graphics, bounds, state));
66
Exception? exception = Record.Exception(() =>
ButtonRenderer
.DrawButton(graphics, bounds, focused, state));
99
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, focused, state));
133
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, flags, focused, state));
158
ButtonRenderer
.DrawButton(graphics, bounds, image, imageBounds, focused, state));
194
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, image, imageBounds, focused, state));
233
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, flags, image, imageBounds, focused, state));
271
ButtonRenderer
.RenderMatchingApplicationState = false;
273
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, flags, image, imageBounds, focused, state));
276
ButtonRenderer
.RenderMatchingApplicationState = true;
278
ButtonRenderer
.DrawButton(graphics, bounds, buttonText, font, flags, image, imageBounds, focused, state));