23 references to CheckBoxRenderer
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
1031
System.Drawing.Size boxSize =
CheckBoxRenderer
.GetGlyphSize(graphics, state);
1039
CheckBoxRenderer
.DrawCheckBox(graphics, p, state);
System.Windows.Forms (17)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
266
CheckBoxRenderer
.DrawCheckBoxWithVisualStyles(
269
CheckBoxRenderer
.ConvertFromButtonState(style, isMixed: true, Control.MouseIsOver),
281
CheckBoxRenderer
.DrawCheckBoxWithVisualStyles(
284
CheckBoxRenderer
.ConvertFromButtonState(style, isMixed: false, Control.MouseIsOver),
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (2)
121
layout.CheckSize =
CheckBoxRenderer
.GetGlyphSize(
123
CheckBoxRenderer
.ConvertFromButtonState(
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (7)
656
Size checkBoxSize =
CheckBoxRenderer
.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal);
698
FlatStyle.Flat =>
CheckBoxRenderer
.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 3,
699
FlatStyle.Popup =>
CheckBoxRenderer
.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 2,
1156
themeCheckBoxState =
CheckBoxRenderer
.ConvertFromButtonState(
1163
checkBoxSize =
CheckBoxRenderer
.GetGlyphSize(g, themeCheckBoxState);
1184
checkBoxSize =
CheckBoxRenderer
.GetGlyphSize(g, CheckBoxState.UncheckedNormal);
1189
checkBoxSize =
CheckBoxRenderer
.GetGlyphSize(g, CheckBoxState.UncheckedNormal);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
523
VisualStyles.CheckBoxState cbState =
CheckBoxRenderer
.ConvertFromButtonState(
528
_idealCheckSize =
CheckBoxRenderer
.GetGlyphSize(e, cbState, HWNDInternal).Width;
556
VisualStyles.CheckBoxState cbState =
CheckBoxRenderer
.ConvertFromButtonState(
561
CheckBoxRenderer
.DrawCheckBoxWithVisualStyles(e, new Point(box.X, box.Y), cbState, HWNDInternal);
System.Windows.Forms.Tests (4)
System\Windows\Forms\CheckBoxRendererTests.cs (4)
31
CheckBoxRenderer
.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, false, cBState);
68
CheckBoxRenderer
.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, false, cBState);
105
CheckBoxRenderer
.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, textFormat, false, cBState);
139
CheckBoxRenderer
.DrawCheckBox(graphics, point, bounds, control.Text, SystemFonts.DefaultFont, TextFormatFlags.Default, focus, cBState, HWND.Null);