264 references to ClientUtils
System.Windows.Forms (264)
winforms\Managed\System\Resources\ResXDataNode.cs (2)
396
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
626
if(
ClientUtils
.IsCriticalException(ex)) {
winforms\Managed\System\Resources\ResXResourceReader.cs (1)
425
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
winforms\Managed\System\WinForms\Application.cs (4)
247
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
413
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
705
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
771
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)VisualStyleState.NoneEnabled, (int)VisualStyleState.ClientAndNonClientAreasEnabled)
winforms\Managed\System\WinForms\AxHost.cs (2)
3784
if (
ClientUtils
.IsCriticalException(ex)) {
3796
if (
ClientUtils
.IsCriticalException(ex)) {
winforms\Managed\System\WinForms\Binding.cs (1)
657
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
winforms\Managed\System\WinForms\Button.cs (2)
85
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
190
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DialogResult.None, (int) DialogResult.No)) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
284
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)){
winforms\Managed\System\WinForms\CheckBox.cs (2)
117
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)Appearance.Normal, (int)Appearance.Button)){
257
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)CheckState.Unchecked, (int)CheckState.Indeterminate)){
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
302
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)SelectionMode.None, (int)SelectionMode.MultiExtended)){
995
if (!
ClientUtils
.IsEnumValid(value,(int)value, (int)CheckState.Unchecked, (int)CheckState.Indeterminate)){
1155
if (!
ClientUtils
.IsEnumValid(check, (int)check, (int)CheckState.Unchecked, (int)CheckState.Indeterminate)){
winforms\Managed\System\WinForms\Clipboard.cs (4)
350
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue)){
441
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue))
512
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
568
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue))
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
337
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center)){
winforms\Managed\System\WinForms\ComboBox.cs (5)
193
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoCompleteMode.None, (int)AutoCompleteMode.SuggestAppend)) {
230
if (!
ClientUtils
.IsEnumValid_NotSequential(value, (int)value,
510
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DrawMode.Normal, (int)DrawMode.OwnerDrawVariable)) {
639
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) {
1236
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ComboBoxStyle.Simple, (int)ComboBoxStyle.DropDownList))
winforms\Managed\System\WinForms\ContainerControl.cs (1)
147
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoScaleMode.None, (int)AutoScaleMode.Inherit)){
winforms\Managed\System\WinForms\ContextMenu.cs (1)
128
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)RightToLeft.No, (int)RightToLeft.Inherit)){
winforms\Managed\System\WinForms\Control.cs (17)
766
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AccessibleRole.Default, (int)AccessibleRole.OutlineButton)) {
1202
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ImageLayout.None, (int)ImageLayout.Zoom)){
3763
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)RightToLeft.No, (int)RightToLeft.Inherit)){
6128
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
8899
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
13720
if (
ClientUtils
.IsCriticalException(ex) && !(ex is OutOfMemoryException)) {
14952
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
16341
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
16390
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
16423
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
17405
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
17461
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
17640
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
17695
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
18795
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
19005
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
19853
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
winforms\Managed\System\WinForms\Control.Ime.cs (1)
279
if( !
ClientUtils
.IsEnumValid( value, (int) value, (int) ImeMode.Inherit, (int) ImeMode.OnHalf ) ) {
winforms\Managed\System\WinForms\DataGrid.cs (3)
556
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
1858
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridLineStyle.None, (int)DataGridLineStyle.Solid))
1897
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridParentRowsLabelStyle.None, (int)DataGridParentRowsLabelStyle.Both))
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
121
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center)){
winforms\Managed\System\WinForms\DataGridTable.cs (1)
547
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridLineStyle.None, (int)DataGridLineStyle.Solid)) {
winforms\Managed\System\WinForms\DataGridView.cs (10)
1415
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
1583
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewCellBorderStyle.Custom, (int)DataGridViewCellBorderStyle.SunkenHorizontal))
1747
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewClipboardCopyMode.Disable, (int)DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText))
1852
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewHeaderBorderStyle.Custom, (int)DataGridViewHeaderBorderStyle.None))
2056
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewColumnHeadersHeightSizeMode.EnableResizing, (int)DataGridViewColumnHeadersHeightSizeMode.AutoSize))
2724
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewEditMode.EditOnEnter, (int)DataGridViewEditMode.EditProgrammatically))
4139
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewHeaderBorderStyle.Custom, (int)DataGridViewHeaderBorderStyle.None))
4396
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewRowHeadersWidthSizeMode.EnableResizing, (int)DataGridViewRowHeadersWidthSizeMode.AutoSizeToFirstHeader))
4569
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ScrollBars.None, (int)ScrollBars.Both))
4742
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewSelectionMode.CellSelect, (int)DataGridViewSelectionMode.ColumnHeaderSelect))
winforms\Managed\System\WinForms\DataGridViewAdvancedBorderStyle.cs (5)
65
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewAdvancedCellBorderStyle.NotSet, (int)DataGridViewAdvancedCellBorderStyle.OutsetPartial))
102
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewAdvancedCellBorderStyle.NotSet, (int)DataGridViewAdvancedCellBorderStyle.OutsetPartial))
153
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewAdvancedCellBorderStyle.NotSet, (int)DataGridViewAdvancedCellBorderStyle.OutsetPartial))
214
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewAdvancedCellBorderStyle.NotSet, (int)DataGridViewAdvancedCellBorderStyle.OutsetPartial))
266
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewAdvancedCellBorderStyle.NotSet, (int)DataGridViewAdvancedCellBorderStyle.OutsetPartial))
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
102
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System))
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1921
if (
ClientUtils
.IsCriticalException(exception))
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (1)
573
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewTriState.NotSet, (int)DataGridViewTriState.False)){
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
291
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System))
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
82
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)SortOrder.None, (int)SortOrder.Descending))
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
205
if (
ClientUtils
.IsCriticalException(exception))
219
if (
ClientUtils
.IsCriticalException(exception))
322
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewComboBoxDisplayStyle.ComboBox, (int)DataGridViewComboBoxDisplayStyle.Nothing))
501
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System))
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (6)
1219
if (
ClientUtils
.IsCriticalException(exception) && !(exception is IndexOutOfRangeException))
1253
if (
ClientUtils
.IsCriticalException(exception) && !(exception is IndexOutOfRangeException))
1286
if (
ClientUtils
.IsCriticalException(exception) && !(exception is IndexOutOfRangeException))
1464
if (
ClientUtils
.IsCriticalException(exception))
1522
if (
ClientUtils
.IsCriticalException(exception))
1601
if (
ClientUtils
.IsCriticalException(exception))
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
164
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DataGridViewImageCellLayout.NotSet, (int)DataGridViewImageCellLayout.Zoom))
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
154
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)LinkBehavior.SystemDefault, (int)LinkBehavior.NeverUnderline))
winforms\Managed\System\WinForms\DataGridViewMethods.cs (6)
3130
if (
ClientUtils
.IsCriticalException(exception))
9862
if (
ClientUtils
.IsCriticalException(exception))
9903
if (
ClientUtils
.IsCriticalException(exception))
17171
if (
ClientUtils
.IsCriticalException(ex))
20521
if (
ClientUtils
.IsCriticalException(exception))
25540
if (
ClientUtils
.IsCriticalException(e))
winforms\Managed\System\WinForms\DataObject.cs (3)
322
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue)){
372
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue)){
448
if (!
ClientUtils
.IsEnumValid(format, (int)format, (int)TextDataFormat.Text, (int)TextDataFormat.CommaSeparatedValue))
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
579
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)LeftRightAlignment.Left, (int)LeftRightAlignment.Right)){
635
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DateTimePickerFormat.Long, (int)DateTimePickerFormat.Custom, /*maxNumberOfBitsOn*/1))
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
155
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ErrorBlinkStyle.BlinkIfDifferentError, (int)ErrorBlinkStyle.NeverBlink)){
1466
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ErrorIconAlignment.TopLeft, (int)ErrorIconAlignment.BottomRight))
winforms\Managed\System\WinForms\Form.cs (6)
707
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
841
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FormBorderStyle.None, (int)FormBorderStyle.SizableToolWindow))
1219
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DialogResult.None, (int)DialogResult.No))
2405
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)SizeGripStyle.Auto, (int)SizeGripStyle.Hide))
2435
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FormStartPosition.Manual, (int)FormStartPosition.CenterParent))
2760
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FormWindowState.Normal, (int)FormWindowState.Maximized))
winforms\Managed\System\WinForms\GroupBox.cs (2)
131
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
236
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System))
winforms\Managed\System\WinForms\HelpProvider.cs (1)
300
if (!
ClientUtils
.IsEnumValid(navigator, (int)navigator, (int)HelpNavigator.Topic, (int)HelpNavigator.TopicId)){
winforms\Managed\System\WinForms\HtmlDocument.cs (7)
196
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
225
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
254
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
283
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
312
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
588
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
865
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
winforms\Managed\System\WinForms\HtmlElement.cs (1)
638
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
winforms\Managed\System\WinForms\ImageList.cs (1)
170
if (!
ClientUtils
.IsEnumValid_NotSequential(value,
winforms\Managed\System\WinForms\Label.cs (3)
287
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
415
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System))
695
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutomationLiveSetting.Off, (int)AutomationLiveSetting.Assertive)) {
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
526
Debug.Assert(
ClientUtils
.IsEnumValid(value, (int)value, (int)DockStyle.None, (int)DockStyle.Fill), "Illegal value returned form xGetDock.");
560
Debug.Assert(
ClientUtils
.IsEnumValid(value, (int)value, (int)DockStyle.None, (int)DockStyle.Fill), "Illegal value passed to xSetDock.");
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
670
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DockStyle.None, (int)DockStyle.Fill)){
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
293
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FlowDirection.LeftToRight, (int)FlowDirection.BottomUp)){
winforms\Managed\System\WinForms\LinkLabel.cs (2)
288
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)LinkBehavior.SystemDefault, (int)LinkBehavior.NeverUnderline)){
876
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DialogResult.None, (int)DialogResult.No))
winforms\Managed\System\WinForms\ListBox.cs (3)
272
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
438
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DrawMode.Normal, (int)DrawMode.OwnerDrawVariable))
1024
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)SelectionMode.None, (int)SelectionMode.MultiExtended))
winforms\Managed\System\WinForms\ListControl.cs (1)
596
if (
ClientUtils
.IsSecurityOrCriticalException(exception))
winforms\Managed\System\WinForms\ListView.cs (9)
273
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ItemActivation.Standard, (int)ItemActivation.TwoClick)){
306
if (!
ClientUtils
.IsEnumValid_NotSequential(value,
469
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D))
968
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ColumnHeaderStyle.None, (int)ColumnHeaderStyle.Clickable))
1492
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)SortOrder.None, (int)SortOrder.Descending))
1780
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)View.LargeIcon, (int)View.Tile))
3416
if (!
ClientUtils
.IsEnumValid(portion, (int)portion, (int)ItemBoundsPortion.Entire, (int)ItemBoundsPortion.ItemOnly)){
3509
if (!
ClientUtils
.IsEnumValid(portion, (int)portion, (int)ItemBoundsPortion.Entire, (int)ItemBoundsPortion.ItemOnly))
4922
if (!
ClientUtils
.IsEnumValid(headerAutoResize, (int)headerAutoResize, (int)ColumnHeaderAutoResizeStyle.None, (int)ColumnHeaderAutoResizeStyle.ColumnContent))
winforms\Managed\System\WinForms\ListViewGroup.cs (1)
134
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center)){
winforms\Managed\System\WinForms\MainMenu.cs (1)
105
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)RightToLeft.No, (int)RightToLeft.Inherit)){
winforms\Managed\System\WinForms\MaskedTextBox.cs (7)
443
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)MaskFormat.ExcludePromptAndLiterals, (int)MaskFormat.IncludePromptAndLiterals))
568
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)InsertKeyMode.Default, (int)InsertKeyMode.Overwrite))
1416
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center))
1489
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)MaskFormat.ExcludePromptAndLiterals, (int)MaskFormat.IncludePromptAndLiterals))
2576
if (
ClientUtils
.IsSecurityOrCriticalException(exception))
3022
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
3164
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
winforms\Managed\System\WinForms\MenuItem.cs (1)
512
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)MenuMerge.Add, (int)MenuMerge.Remove)){
winforms\Managed\System\WinForms\MessageBox.cs (1)
419
if (!
ClientUtils
.IsEnumValid(buttons, (int)buttons, (int)MessageBoxButtons.OK, (int)MessageBoxButtons.RetryCancel)){
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
508
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)Day.Monday, (int)Day.Default)){
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
139
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolTipIcon.None, (int)ToolTipIcon.Error)){
681
if (!
ClientUtils
.IsEnumValid(tipIcon, (int)tipIcon, (int)ToolTipIcon.None, (int)ToolTipIcon.Error)){
winforms\Managed\System\WinForms\Panel.cs (3)
103
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){
140
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D))
307
return (
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)) ? (borderStyleType.ToString() + "." + value.ToString()) : "[Invalid BorderStyle]";
winforms\Managed\System\WinForms\PictureBox.cs (3)
167
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
967
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)PictureBoxSizeMode.Normal, (int)PictureBoxSizeMode.Zoom))
1312
if (
ClientUtils
.IsCriticalException(ex))
winforms\Managed\System\WinForms\ProgressBar.cs (1)
161
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ProgressBarStyle.Blocks, (int)ProgressBarStyle.Marquee)){
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
1078
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)PropertySort.NoSort, (int)PropertySort.CategorizedAlphabetical)){
winforms\Managed\System\WinForms\RadioButton.cs (1)
131
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)Appearance.Normal, (int)Appearance.Button)){
winforms\Managed\System\WinForms\RichTextBox.cs (5)
791
if (!
ClientUtils
.IsEnumValid_NotSequential(value,
855
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center))
2413
if (!
ClientUtils
.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText)){
2432
if (!
ClientUtils
.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText))
2764
if (!
ClientUtils
.IsEnumValid(fileType, (int)fileType, (int)RichTextBoxStreamType.RichText, (int)RichTextBoxStreamType.UnicodePlainText))
winforms\Managed\System\WinForms\SplitContainer.cs (3)
364
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
479
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)FixedPanel.None, (int)FixedPanel.Panel2)){
559
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)Orientation.Horizontal, (int)Orientation.Vertical)){
winforms\Managed\System\WinForms\Splitter.cs (1)
254
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
winforms\Managed\System\WinForms\StatusBarPanel.cs (4)
94
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center)){
125
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)StatusBarPanelAutoSize.None, (int)StatusBarPanelAutoSize.Contents)){
158
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)StatusBarPanelBorderStyle.None, (int)StatusBarPanelBorderStyle.Sunken)){
362
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)StatusBarPanelStyle.Text, (int)StatusBarPanelStyle.OwnerDraw)){
winforms\Managed\System\WinForms\TabControl.cs (4)
148
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TabAlignment.Top, (int)TabAlignment.Right)){
186
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TabAppearance.Normal, (int)TabAppearance.FlatButtons)){
465
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TabDrawMode.Normal, (int)TabDrawMode.OwnerDrawFixed)){
838
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TabSizeMode.Normal, (int)TabSizeMode.Fixed)){
winforms\Managed\System\WinForms\TableLayoutSettings.cs (2)
81
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TableLayoutPanelCellBorderStyle.None, (int)TableLayoutPanelCellBorderStyle.OutsetPartial)){
198
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TableLayoutPanelGrowStyle.FixedSize, (int)TableLayoutPanelGrowStyle.AddColumns)){
winforms\Managed\System\WinForms\TextBox.cs (5)
151
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoCompleteMode.None, (int)AutoCompleteMode.SuggestAppend)){
181
if (!
ClientUtils
.IsEnumValid_NotSequential(value,
268
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)CharacterCasing.Normal, (int)CharacterCasing.Lower)){
429
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ScrollBars.None, (int)ScrollBars.Both)){
498
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center)){
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
398
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
winforms\Managed\System\WinForms\ToolBar.cs (4)
166
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolBarAppearance.Normal, (int)ToolBarAppearance.Flat)){
330
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D)){
525
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DockStyle.None, (int)DockStyle.Fill)){
933
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolBarTextAlign.Underneath, (int)ToolBarTextAlign.Right)) {
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
358
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolBarButtonStyle.PushButton, (int)ToolBarButtonStyle.DropDownButton)){
winforms\Managed\System\WinForms\ToolStrip.cs (4)
942
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripGripStyle.Hidden, (int)ToolStripGripStyle.Visible)){
1351
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripLayoutStyle.StackWithOverflow, (int)ToolStripLayoutStyle.Table)){
1746
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripRenderMode.Custom, (int)ToolStripRenderMode.ManagerRenderMode)){
1886
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripTextDirection.Inherit, (int)ToolStripTextDirection.Vertical270)){
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
131
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)CheckState.Unchecked, (int)CheckState.Indeterminate))
winforms\Managed\System\WinForms\ToolStripItem.cs (10)
322
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AccessibleRole.Default, (int)AccessibleRole.OutlineButton)){
348
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripItemAlignment.Left, (int)ToolStripItemAlignment.Right))
523
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ImageLayout.None, (int)ImageLayout.Zoom))
681
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)DockStyle.None, (int)DockStyle.Fill)){
770
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripItemDisplayStyle.None, (int)ToolStripItemDisplayStyle.ImageAndText))
1395
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripItemImageScaling.None, (int)ToolStripItemImageScaling.SizeToFit))
1553
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)MergeAction.Append, (int)MergeAction.MatchOnly))
1848
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripItemOverflow.Never, (int)ToolStripItemOverflow.AsNeeded))
2051
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)RightToLeft.No, (int)RightToLeft.Inherit))
2347
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripTextDirection.Inherit, (int)ToolStripTextDirection.Vertical270))
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
327
if (
ClientUtils
.IsCriticalException(e))
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
131
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)LinkBehavior.SystemDefault, (int)LinkBehavior.NeverUnderline))
winforms\Managed\System\WinForms\ToolStripManager.cs (8)
29
private static
ClientUtils
.WeakRefCollection toolStripWeakArrayList;
31
private static
ClientUtils
.WeakRefCollection toolStripPanelWeakArrayList;
134
internal static
ClientUtils
.WeakRefCollection ToolStrips {
137
toolStripWeakArrayList = new
ClientUtils
.WeakRefCollection();
543
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripManagerRenderMode.Custom, (int)ToolStripManagerRenderMode.Professional)) {
609
internal static
ClientUtils
.WeakRefCollection ToolStripPanels {
612
toolStripPanelWeakArrayList = new
ClientUtils
.WeakRefCollection();
1812
if (
ClientUtils
.IsCriticalException(e)) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
397
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)CheckState.Unchecked, (int)CheckState.Indeterminate))
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (1)
95
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolStripRenderMode.Custom, (int)ToolStripRenderMode.ManagerRenderMode))
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
321
if (
ClientUtils
.IsCriticalException(e)) {
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
110
if (!
ClientUtils
.IsEnumValid_NotSequential(value,
203
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutomationLiveSetting.Off, (int)AutomationLiveSetting.Assertive)) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
530
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)ToolTipIcon.None, (int)ToolTipIcon.Error))
winforms\Managed\System\WinForms\TrackBar.cs (2)
440
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)Orientation.Horizontal, (int)Orientation.Vertical))
627
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TickStyle.None, (int)TickStyle.Both))
winforms\Managed\System\WinForms\TreeView.cs (2)
297
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D))
921
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)TreeViewDrawMode.Normal, (int)TreeViewDrawMode.OwnerDrawAll))
winforms\Managed\System\WinForms\UpDownBase.cs (3)
289
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D))
629
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.Center))
666
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)LeftRightAlignment.Left, (int)LeftRightAlignment.Right))
winforms\Managed\System\WinForms\UserControl.cs (2)
100
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly))
176
if (!
ClientUtils
.IsEnumValid(value, (int)value, (int)BorderStyle.None, (int)BorderStyle.Fixed3D))
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (16)
345
if (!
ClientUtils
.IsEnumValid_Masked(edges, (int)edges,(UInt32)(Edges.Left | Edges.Top | Edges.Right | Edges.Bottom | Edges.Diagonal))) {
349
if (!
ClientUtils
.IsEnumValid_NotSequential(style, (int)style, (int)EdgeStyle.Raised,(int)EdgeStyle.Sunken,(int)EdgeStyle.Etched,(int)EdgeStyle.Bump )) {
353
if (!
ClientUtils
.IsEnumValid_Masked(effects, (int)effects, (UInt32)(EdgeEffects.FillInterior | EdgeEffects.Flat | EdgeEffects.Soft | EdgeEffects.Mono))) {
597
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)BooleanProperty.Transparent, (int)BooleanProperty.SourceShrink)){
614
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)ColorProperty.BorderColor, (int)ColorProperty.AccentColorHint))
632
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)EnumProperty.BackgroundType, (int)EnumProperty.TrueSizeScalingType))
650
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)FilenameProperty.ImageFile, (int)FilenameProperty.GlyphImageFile))
675
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)FontProperty.GlyphFont, (int)FontProperty.GlyphFont))
701
if (
ClientUtils
.IsSecurityOrCriticalException(e)) {
721
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)IntegerProperty.ImageCount, (int)IntegerProperty.MinDpi5))
747
if (!
ClientUtils
.IsEnumValid(type, (int)type, (int)ThemeSizeType.Minimum, (int)ThemeSizeType.Draw)) {
780
if (!
ClientUtils
.IsEnumValid(type, (int)type, (int)ThemeSizeType.Minimum, (int)ThemeSizeType.Draw))
803
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)PointProperty.Offset, (int)PointProperty.MinSize5))
825
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)MarginProperty.SizingMargins, (int)MarginProperty.CaptionMargins))
849
if (!
ClientUtils
.IsEnumValid(prop, (int)prop, (int)StringProperty.Text, (int)StringProperty.Text))
1143
if (
ClientUtils
.IsSecurityOrCriticalException(e))
winforms\Managed\System\WinForms\WebBrowser.cs (11)
681
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
707
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
866
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
895
if (
ClientUtils
.IsSecurityOrCriticalException(ex))
925
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
966
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
988
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
1009
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
1029
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
1051
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
1068
if (
ClientUtils
.IsSecurityOrCriticalException(ex)) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
409
if (
ClientUtils
.IsCriticalException(ex)) {
1248
if (
ClientUtils
.IsCriticalException(ex)) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
476
if (
ClientUtils
.IsCriticalException(ex))
winforms\Managed\System\WinForms\WinFormsUtils.cs (3)
393
if (
ClientUtils
.GetBitCount((uint)contentAlign) != 1) {
430
return
ClientUtils
.IsEnumValid(relation, (int)relation, (int)TextImageRelation.Overlay, (int)TextImageRelation.TextBeforeImage,1);
685
if (
ClientUtils
.IsSecurityOrCriticalException(ex))