168 references to FlatStyle
System.Web.Mobile (4)
UI\MobileControls\Design\ListItemsPage.cs (2)
100
_itemsAsLinksCheckBox.FlatStyle =
FlatStyle
.System;
141
_ckbSelected.FlatStyle = System.Windows.Forms.
FlatStyle
.System;
UI\MobileControls\Design\ObjectListFieldsPage.cs (2)
86
_ckbAutoGenerateFields.FlatStyle =
FlatStyle
.System;
139
_ckbVisible.FlatStyle = System.Windows.Forms.
FlatStyle
.System;
System.Windows.Forms (164)
winforms\Managed\System\WinForms\Button.cs (1)
117
if(FlatStyle !=
FlatStyle
.System) {
winforms\Managed\System\WinForms\ButtonBase.cs (13)
36
private
FlatStyle
flatStyle = System.Windows.Forms.
FlatStyle
.Standard;
275
DefaultValue(
FlatStyle
.Standard),
279
public
FlatStyle
FlatStyle {
284
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System)){
285
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
564
if (FlatStyle ==
FlatStyle
.Standard) {
577
return FlatStyle !=
FlatStyle
.System;
966
private
FlatStyle
_cachedAdapterType;
972
case
FlatStyle
.Standard:
975
case
FlatStyle
.Popup:
978
case
FlatStyle
.Flat:
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1558
if( Control.FlatStyle !=
FlatStyle
.System ) {
winforms\Managed\System\WinForms\CheckBox.cs (5)
374
if(FlatStyle !=
FlatStyle
.System) {
395
if (FlatStyle ==
FlatStyle
.Standard) {
414
if (Appearance == Appearance.Button || FlatStyle ==
FlatStyle
.System) {
527
if (this.FlatStyle ==
FlatStyle
.System) {
534
if (this.FlatStyle ==
FlatStyle
.System) {
winforms\Managed\System\WinForms\ComboBox.cs (19)
79
private
FlatStyle
flatStyle =
FlatStyle
.Standard;
629
DefaultValue(
FlatStyle
.Standard),
633
public
FlatStyle
FlatStyle {
639
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System)) {
640
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
870
if ((!ContainsFocus || !Application.RenderWithVisualStyles) && this.FlatStyle ==
FlatStyle
.Popup) {
1725
if (FlatStyle ==
FlatStyle
.Popup) {
1761
if (FlatStyle ==
FlatStyle
.Popup) {
3688
if (!Application.RenderWithVisualStyles && GetStyle(ControlStyles.UserPaint) == false && this.DropDownStyle == ComboBoxStyle.DropDownList && (FlatStyle ==
FlatStyle
.Flat || FlatStyle ==
FlatStyle
.Popup)) {
3757
if (GetStyle(ControlStyles.UserPaint) == false && (FlatStyle ==
FlatStyle
.Flat || FlatStyle ==
FlatStyle
.Popup)) {
3811
if (GetStyle(ControlStyles.UserPaint) == false && FlatStyle ==
FlatStyle
.Flat || FlatStyle ==
FlatStyle
.Popup) {
3815
if (GetStyle(ControlStyles.UserPaint) == false && FlatStyle ==
FlatStyle
.Flat || FlatStyle ==
FlatStyle
.Popup) {
6030
if ((!comboBox.Enabled) ||(comboBox.FlatStyle ==
FlatStyle
.Popup)) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (26)
85
DefaultValue(
FlatStyle
.Standard)
87
public
FlatStyle
FlatStyle
95
return (
FlatStyle
)flatStyle;
97
return
FlatStyle
.Standard;
102
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System))
104
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
114
internal
FlatStyle
FlatStyleInternal
118
Debug.Assert(value >=
FlatStyle
.Flat && value <=
FlatStyle
.System);
585
(this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup))
611
if (this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup)
759
if (this.FlatStyle ==
FlatStyle
.Standard || this.FlatStyle ==
FlatStyle
.System)
799
else if (this.FlatStyle ==
FlatStyle
.Flat)
867
Debug.Assert(this.FlatStyle ==
FlatStyle
.Popup, "FlatStyle.Popup is the last flat style");
942
if (this.FlatStyle ==
FlatStyle
.System || this.FlatStyle ==
FlatStyle
.Standard)
946
else if (this.FlatStyle ==
FlatStyle
.Flat)
979
Debug.Assert(this.FlatStyle ==
FlatStyle
.Popup, "FlatStyle.Popup is the last flat style");
1018
this.FlatStyle !=
FlatStyle
.Flat && this.FlatStyle !=
FlatStyle
.Popup)
1029
(this.FlatStyle ==
FlatStyle
.System || this.FlatStyle ==
FlatStyle
.Standard))
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (2)
78
DefaultValue(
FlatStyle
.Standard),
82
public
FlatStyle
FlatStyle
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (32)
275
[DefaultValue(
FlatStyle
.Standard)]
276
public
FlatStyle
FlatStyle
284
return (
FlatStyle
)flatStyle;
286
return
FlatStyle
.Standard;
291
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System))
293
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
303
internal
FlatStyle
FlatStyleInternal
307
Debug.Assert(value >=
FlatStyle
.Flat && value <=
FlatStyle
.System);
771
case
FlatStyle
.Standard:
772
case
FlatStyle
.System:
774
case
FlatStyle
.Flat:
778
case
FlatStyle
.Popup:
808
case
FlatStyle
.Flat:
811
case
FlatStyle
.Popup:
1017
(this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup))
1043
if (this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup)
1266
case
FlatStyle
.Standard:
1267
case
FlatStyle
.System:
1269
case
FlatStyle
.Flat:
1273
case
FlatStyle
.Popup:
1283
case
FlatStyle
.Flat:
1288
case
FlatStyle
.Popup:
1329
if (this.DataGridView.ApplyVisualStylesToInnerCells && this.FlatStyle !=
FlatStyle
.Flat && this.FlatStyle !=
FlatStyle
.Popup)
1342
if (this.FlatStyle ==
FlatStyle
.System || this.FlatStyle ==
FlatStyle
.Standard)
1358
else if (this.FlatStyle ==
FlatStyle
.Flat)
1461
Debug.Assert(this.FlatStyle ==
FlatStyle
.Popup);
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (2)
136
DefaultValue(
FlatStyle
.Standard),
140
public
FlatStyle
FlatStyle
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (23)
485
[DefaultValue(
FlatStyle
.Standard)]
486
public
FlatStyle
FlatStyle
494
return (
FlatStyle
)flatStyle;
496
return
FlatStyle
.Standard;
501
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System))
503
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
513
internal
FlatStyle
FlatStyleInternal
517
Debug.Assert(value >=
FlatStyle
.Flat && value <=
FlatStyle
.System);
585
bool paintFlat = this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup;
1475
if (this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup)
1938
if (this.DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && this.FlatStyle ==
FlatStyle
.Popup)
1959
(this.FlatStyle ==
FlatStyle
.Standard || this.FlatStyle ==
FlatStyle
.System) &&
1966
if (this.DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && this.FlatStyle ==
FlatStyle
.Popup)
1981
if ((this.FlatStyle ==
FlatStyle
.Standard || this.FlatStyle ==
FlatStyle
.System) && this.DataGridView.ApplyVisualStylesToInnerCells)
2124
bool paintFlat = this.FlatStyle ==
FlatStyle
.Flat || this.FlatStyle ==
FlatStyle
.Popup;
2125
bool paintPopup = this.FlatStyle ==
FlatStyle
.Popup &&
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (2)
317
DefaultValue(
FlatStyle
.Standard),
321
public
FlatStyle
FlatStyle
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
301
helpButton.FlatStyle =
FlatStyle
.System;
308
applyButton.FlatStyle =
FlatStyle
.System;
314
cancelButton.FlatStyle =
FlatStyle
.System;
321
okButton.FlatStyle =
FlatStyle
.System;
winforms\Managed\System\WinForms\GroupBox.cs (8)
44
FlatStyle
flatStyle =
FlatStyle
.Standard;
227
DefaultValue(
FlatStyle
.Standard),
230
public
FlatStyle
FlatStyle {
236
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System))
238
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
271
return FlatStyle !=
FlatStyle
.System;
winforms\Managed\System\WinForms\Label.cs (14)
53
private static readonly BitVector32.Section StateFlatStyle = BitVector32.CreateSection((int)
FlatStyle
.System, StateAnimating);
113
labelState[StateFlatStyle] = (int)
FlatStyle
.Standard;
406
DefaultValue(
FlatStyle
.Standard),
409
public
FlatStyle
FlatStyle {
411
return (
FlatStyle
)labelState[StateFlatStyle];
415
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
FlatStyle
.Flat, (int)
FlatStyle
.System))
417
throw new InvalidEnumArgumentException("value", (int)value, typeof(
FlatStyle
));
421
bool needRecreate = (labelState[StateFlatStyle] == (int)
FlatStyle
.System) || (value ==
FlatStyle
.System);
1278
return (FlatStyle ==
FlatStyle
.System || !UseCompatibleTextRendering);
1305
TextFormatFlags format = FlatStyle ==
FlatStyle
.System ? TextFormatFlags.Default : CreateTextFormatFlags(proposedConstraints);
1341
if (UseCompatibleTextRendering && FlatStyle !=
FlatStyle
.System) {
1387
return FlatStyle !=
FlatStyle
.System;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
205
public new
FlatStyle
FlatStyle
winforms\Managed\System\WinForms\RadioButton.cs (3)
317
if(FlatStyle !=
FlatStyle
.System) {
334
if (FlatStyle ==
FlatStyle
.Standard) {
348
if (Appearance == Appearance.Button || FlatStyle ==
FlatStyle
.System) {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
298
continueButton.FlatStyle =
FlatStyle
.Standard;
302
quitButton.FlatStyle =
FlatStyle
.Standard;
306
helpButton.FlatStyle =
FlatStyle
.Standard;
310
detailsButton.FlatStyle =
FlatStyle
.Standard;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
130
comboBox.FlatStyle =
FlatStyle
.Popup;
322
DefaultValue(
FlatStyle
.Popup),
326
public
FlatStyle
FlatStyle {
607
this.FlatStyle =
FlatStyle
.Popup;