53 references to CheckBoxState
System.Windows.Forms (53)
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (44)
64
public static bool IsBackgroundPartiallyTransparent(
CheckBoxState
state) {
99
public static void DrawCheckBox(Graphics g, Point glyphLocation,
CheckBoxState
state) {
103
internal static void DrawCheckBox(Graphics g, Point glyphLocation,
CheckBoxState
state, IntPtr hWnd) {
128
public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, bool focused,
CheckBoxState
state) {
140
public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused,
CheckBoxState
state) {
144
internal static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, bool focused,
CheckBoxState
state, IntPtr hWnd) {
178
public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, Image image, Rectangle imageBounds, bool focused,
CheckBoxState
state) {
190
public static void DrawCheckBox(Graphics g, Point glyphLocation, Rectangle textBounds, string checkBoxText, Font font, TextFormatFlags flags, Image image, Rectangle imageBounds, bool focused,
CheckBoxState
state) {
230
public static Size GetGlyphSize(Graphics g,
CheckBoxState
state) {
234
internal static Size GetGlyphSize(Graphics g,
CheckBoxState
state, IntPtr hWnd) {
244
internal static ButtonState ConvertToButtonState(
CheckBoxState
state) {
247
case
CheckBoxState
.CheckedNormal:
248
case
CheckBoxState
.CheckedHot:
250
case
CheckBoxState
.CheckedPressed:
252
case
CheckBoxState
.CheckedDisabled:
255
case
CheckBoxState
.UncheckedPressed:
257
case
CheckBoxState
.UncheckedDisabled:
261
case
CheckBoxState
.MixedNormal:
262
case
CheckBoxState
.MixedHot:
264
case
CheckBoxState
.MixedPressed:
266
case
CheckBoxState
.MixedDisabled:
274
internal static
CheckBoxState
ConvertFromButtonState(ButtonState state, bool isMixed, bool isHot) {
277
return
CheckBoxState
.MixedPressed;
280
return
CheckBoxState
.MixedDisabled;
283
return
CheckBoxState
.MixedHot;
286
return
CheckBoxState
.MixedNormal;
290
return
CheckBoxState
.CheckedPressed;
293
return
CheckBoxState
.CheckedDisabled;
296
return
CheckBoxState
.CheckedHot;
299
return
CheckBoxState
.CheckedNormal;
303
return
CheckBoxState
.UncheckedPressed;
306
return
CheckBoxState
.UncheckedDisabled;
309
return
CheckBoxState
.UncheckedHot;
312
return
CheckBoxState
.UncheckedNormal;
316
private static bool IsMixed(
CheckBoxState
state) {
319
case
CheckBoxState
.MixedNormal:
320
case
CheckBoxState
.MixedHot:
321
case
CheckBoxState
.MixedPressed:
322
case
CheckBoxState
.MixedDisabled:
330
private static bool IsDisabled(
CheckBoxState
state) {
332
case
CheckBoxState
.CheckedDisabled:
333
case
CheckBoxState
.UncheckedDisabled:
334
case
CheckBoxState
.MixedDisabled:
346
&& IsDisabled((
CheckBoxState
)state)
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
681
VisualStyles.
CheckBoxState
cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State & DrawItemState.HotLight) == DrawItemState.HotLight));
711
VisualStyles.
CheckBoxState
cbState = CheckBoxRenderer.ConvertFromButtonState(state, false, ((e.State & DrawItemState.HotLight) == DrawItemState.HotLight));
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (7)
768
Size checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics,
CheckBoxState
.UncheckedNormal);
809
checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics,
CheckBoxState
.UncheckedNormal).Width - 3;
812
checkBoxSize = CheckBoxRenderer.GetGlyphSize(graphics,
CheckBoxState
.UncheckedNormal).Width - 2;
1255
CheckBoxState
themeCheckBoxState =
CheckBoxState
.UncheckedNormal;
1284
checkBoxSize = CheckBoxRenderer.GetGlyphSize(g,
CheckBoxState
.UncheckedNormal);
1289
checkBoxSize = CheckBoxRenderer.GetGlyphSize(g,
CheckBoxState
.UncheckedNormal);