406 references to InvalidEnumArgumentException
PresentationCore (37)
Core\CSharp\System\Windows\Clipboard.cs (3)
148throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 250throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 387throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
Core\CSharp\System\Windows\DataObject.cs (3)
512throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 568throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 682throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
Core\CSharp\System\Windows\EventManager.cs (1)
69throw new System.ComponentModel.InvalidEnumArgumentException("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
Core\CSharp\System\Windows\Input\Command\KeyGesture.cs (2)
97throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 100throw new InvalidEnumArgumentException("key", (int)key, typeof(Key));
Core\CSharp\System\Windows\Input\Command\MouseActionConverter.cs (1)
143throw new InvalidEnumArgumentException("value", (int)mouseActionValue, typeof(MouseAction));
Core\CSharp\System\Windows\Input\Command\MouseGesture.cs (4)
65throw new InvalidEnumArgumentException("mouseAction", (int)mouseAction, typeof(MouseAction)); 68throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 96throw new InvalidEnumArgumentException("value", (int)value, typeof(MouseAction)); 117throw new InvalidEnumArgumentException("value", (int)value, typeof(ModifierKeys));
Core\CSharp\System\Windows\Input\InputReport.cs (2)
101throw new System.ComponentModel.InvalidEnumArgumentException("mode", (int)mode, typeof(InputMode)); 121throw new System.ComponentModel.InvalidEnumArgumentException("type", (int)type, typeof(InputType));
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (1)
258throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
Core\CSharp\System\Windows\Input\KeyEventArgs.cs (1)
40throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
Core\CSharp\System\Windows\Input\MouseButton.cs (1)
78throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
349throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
Core\CSharp\System\Windows\Input\RawKeyboardInputReport.cs (1)
69throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawKeyboardActions));
Core\CSharp\System\Windows\Input\RawMouseInputReport.cs (1)
66throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions));
Core\CSharp\System\Windows\Input\RawUIStateInputReport.cs (2)
47throw new System.ComponentModel.InvalidEnumArgumentException("action", (int)action, typeof(RawUIStateActions)); 49throw new System.ComponentModel.InvalidEnumArgumentException("targets", (int)targets, typeof(RawUIStateTargets));
Core\CSharp\System\Windows\Input\TextComposition.cs (1)
109throw new InvalidEnumArgumentException("autoComplete",
Core\CSharp\System\Windows\Interop\HwndSource.cs (1)
1181throw new InvalidEnumArgumentException("value", (int)value, typeof(SizeToContent));
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
727throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
Core\CSharp\System\Windows\LocalizabilityAttribute.cs (3)
47throw new InvalidEnumArgumentException( 83throw new InvalidEnumArgumentException("Readability", (int) value, typeof(Readability)); 103throw new InvalidEnumArgumentException("Modifiability", (int) value, typeof(Modifiability));
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
311throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1411throw new InvalidEnumArgumentException("value", (int)value, typeof(TextTrimming));
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
169throw new InvalidEnumArgumentException("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
Core\CSharp\System\Windows\Media\RenderOptions.cs (1)
258throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
Core\CSharp\System\Windows\Media\TextFormatting\NumberSubstitution.cs (2)
75throw new InvalidEnumArgumentException("CultureSource", (int)value, typeof(NumberCultureSource)); 144throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(NumberSubstitutionMethod));
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (1)
50throw new System.ComponentModel.InvalidEnumArgumentException("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (1)
254throw new System.ComponentModel.InvalidEnumArgumentException("origin",
src\Framework\System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
67throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
src\Framework\System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
67throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
src\Framework\System\Windows\Application.cs (1)
990throw new InvalidEnumArgumentException("value", (int)value, typeof(ShutdownMode));
src\Framework\System\Windows\Controls\TextChangedEventArgs.cs (1)
86throw new InvalidEnumArgumentException("action", (int)action, typeof(UndoAction));
src\Framework\System\Windows\Data\Binding.cs (2)
394throw new InvalidEnumArgumentException("value", (int) value, typeof(BindingMode)); 422throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
src\Framework\System\Windows\Documents\ValidationHelper.cs (2)
84throw new InvalidEnumArgumentException(argumentName, (int)direction, typeof(LogicalDirection)); 96throw new InvalidEnumArgumentException(param, (int)edge, typeof(ElementEdge));
src\Framework\System\Windows\FrameworkContentElement.cs (1)
1522throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
src\Framework\System\Windows\FrameworkElement.cs (1)
2646throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
src\Framework\System\Windows\FrameworkPropertyMetadata.cs (2)
224throw new InvalidEnumArgumentException("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger)); 483throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2645throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2687throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2707throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2796throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection));
src\Framework\System\Windows\Markup\Baml2006\SharedStream.cs (1)
253throw new InvalidEnumArgumentException("origin", (int)origin, typeof(SeekOrigin));
src\Framework\System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
80throw new InvalidEnumArgumentException("value", (int)value, typeof(XamlWriterMode));
src\Framework\System\Windows\MessageBox.cs (4)
462throw new InvalidEnumArgumentException ("button", (int)button, typeof(MessageBoxButton)); 466throw new InvalidEnumArgumentException ("icon", (int)icon, typeof(MessageBoxImage)); 470throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(MessageBoxResult)); 474throw new InvalidEnumArgumentException("options", (int)options, typeof(MessageBoxOptions));
src\Framework\System\Windows\Window.cs (1)
1177throw new InvalidEnumArgumentException("value", (int)value, typeof( WindowStartupLocation ));
System (7)
services\io\system\io\FileSystemWatcher.cs (1)
166throw new InvalidEnumArgumentException("value", (int)value, typeof(NotifyFilters));
services\monitoring\system\diagnosticts\CounterCreationData.cs (1)
54throw new InvalidEnumArgumentException("value", (int)value, typeof(PerformanceCounterType));
services\monitoring\system\diagnosticts\EventData.cs (1)
36throw new InvalidEnumArgumentException("value", (int)value, typeof(EventLogEntryType));
services\monitoring\system\diagnosticts\EventLogInternal.cs (2)
1248throw new InvalidEnumArgumentException("action", (int)action, typeof(OverflowAction)); 1623throw new InvalidEnumArgumentException("type", (int)type, typeof(EventLogEntryType));
services\monitoring\system\diagnosticts\Process.cs (1)
790throw new InvalidEnumArgumentException("value", (int)value, typeof(ProcessPriorityClass));
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
453throw new InvalidEnumArgumentException("value", (int)value, typeof(ProcessWindowStyle));
System.Activities (3)
System\Activities\ArgumentDirectionHelper.cs (1)
22new InvalidEnumArgumentException(argumentName, (int)direction, typeof(ArgumentDirection)));
System\Activities\BookmarkOptionsHelper.cs (1)
22new InvalidEnumArgumentException(argumentName, (int)options, typeof(BookmarkOptions)));
System\Activities\VariableModifiersHelper.cs (1)
34new InvalidEnumArgumentException(argumentName, (int)modifiers, typeof(VariableModifiers)));
System.Drawing (34)
commonui\System\Drawing\Advanced\BitmapData.cs (1)
92throw new System.ComponentModel.InvalidEnumArgumentException("value", unchecked((int)value), typeof(PixelFormat));
commonui\System\Drawing\Advanced\GraphicsPath.cs (1)
290throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(FillMode));
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (3)
100throw new InvalidEnumArgumentException("linearGradientMode", unchecked((int)linearGradientMode), typeof(LinearGradientMode)); 140throw new InvalidEnumArgumentException("linearGradientMode", unchecked((int)linearGradientMode), typeof(LinearGradientMode)); 737throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(WrapMode));
commonui\System\Drawing\Advanced\PathGradientBrush.cs (3)
60throw new InvalidEnumArgumentException("wrapMode", unchecked((int)wrapMode), typeof(WrapMode)); 120throw new InvalidEnumArgumentException("wrapMode", unchecked((int)wrapMode), typeof(WrapMode)); 867throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(WrapMode));
commonui\System\Drawing\Advanced\StringFormat.cs (4)
285throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(StringAlignment)); 314throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(StringAlignment)); 346throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(HotkeyPrefix)); 415throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(StringTrimming));
commonui\System\Drawing\Advanced\TextureBrush.cs (4)
78throw new InvalidEnumArgumentException("wrapMode", unchecked((int)wrapMode), typeof(WrapMode)); 116throw new InvalidEnumArgumentException("wrapMode", unchecked((int)wrapMode), typeof(WrapMode)); 158throw new InvalidEnumArgumentException("wrapMode", unchecked((int)wrapMode), typeof(WrapMode)); 397throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(WrapMode));
commonui\System\Drawing\FontConverter.cs (1)
172throw new InvalidEnumArgumentException("style", (int)style, typeof(FontStyle));
commonui\System\Drawing\Graphics.cs (8)
492throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(CompositingMode)); 548throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(CompositingQuality)); 584throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(TextRenderingHint)); 640throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(SmoothingMode)); 671throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(PixelOffsetMode)); 718throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(InterpolationMode)); 784throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(GraphicsUnit)); 913throw new InvalidEnumArgumentException("value", unchecked((int)copyPixelOperation), typeof(CopyPixelOperation));
commonui\System\Drawing\Pen.cs (6)
326throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(LineCap)); 372throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(LineCap)); 409throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(DashCap)); 446throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(LineJoin)); 582throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(PenAlignment)); 913throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(DashStyle));
commonui\System\Drawing\Printing\PrinterResolution.cs (1)
61throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(PrinterResolutionKind));
commonui\System\Drawing\Printing\PrinterSettings.cs (2)
181throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(Duplex)); 453throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(PrintRange));
System.IdentityModel (6)
System\IdentityModel\Configuration\StandardRuntimeEnumValidator.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, enumType));
System\IdentityModel\Selectors\AudienceUriMode.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Selectors\X509CertificateStore.cs (1)
58throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("storeName", (int)storeName,
System\IdentityModel\SspiWrapper.cs (1)
573throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("contextAttribute", (int)contextAttribute,
System\IdentityModel\Tokens\SecurityKeyType.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System.Messaging (25)
System\Messaging\AccessControlEntry.cs (3)
63throw new InvalidEnumArgumentException("value", (int)value, typeof(AccessControlEntryType)); 99throw new InvalidEnumArgumentException("value", (int)value, typeof(GenericAccessRights)); 119throw new InvalidEnumArgumentException("value", (int)value, typeof(StandardAccessRights));
System\Messaging\Message.cs (4)
584throw new InvalidEnumArgumentException("value", (int)value, typeof(CryptographicProviderType)); 1011throw new InvalidEnumArgumentException("value", (int)value, typeof(EncryptionAlgorithm)); 1132throw new InvalidEnumArgumentException("value", (int)value, typeof(HashAlgorithm)); 1359throw new InvalidEnumArgumentException("value", (int)value, typeof(MessagePriority));
System\Messaging\MessageEnumerator.cs (2)
221throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 257throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType));
System\Messaging\MessageQueue.cs (13)
595throw new InvalidEnumArgumentException("value", (int)value, typeof(EncryptionRequired)); 2424throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2477throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2499throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2728throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2779throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2827throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2878throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2918throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 2921throw new InvalidEnumArgumentException("action", (int)lookupAction, typeof(MessageLookupAction)); 3171throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 3216throw new InvalidEnumArgumentException("transactionType", (int)transactionType, typeof(MessageQueueTransactionType)); 3611throw new InvalidEnumArgumentException("accessMode", (int)accessMode, typeof(QueueAccessMode));
System\Messaging\MessageQueueInstaller.cs (2)
140throw new InvalidEnumArgumentException("value", (int)value, typeof(EncryptionRequired)); 315throw new InvalidEnumArgumentException("value", (int)value, typeof(UninstallAction));
System\Messaging\Trustee.cs (1)
51throw new InvalidEnumArgumentException("value", (int)value, typeof(TrusteeType));
System.ServiceModel (36)
System\ServiceModel\Activation\AspNetCompatibilityRequirementsMode.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\AuditLevel.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\AuditLogLocation.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Channels\CompressionFormatHelper.cs (1)
14throw FxTrace.Exception.AsError(new InvalidEnumArgumentException("value", (int)value, typeof(CompressionFormat)));
System\ServiceModel\Channels\PeerCustomResolverBindingElement.cs (1)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PeerReferralPolicy)));
System\ServiceModel\Channels\PnrpPeerResolverBindingElement.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PeerReferralPolicy)));
System\ServiceModel\Channels\SecurityHeaderLayout.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Channels\WebSocketTransportUsageHelper.cs (1)
23new InvalidEnumArgumentException("value", (int)value, typeof(WebSocketTransportUsage)));
System\ServiceModel\Configuration\SecurityElementBase.cs (1)
356throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("AuthenticationMode", (int)this.AuthenticationMode, typeof(AuthenticationMode)));
System\ServiceModel\Configuration\ServiceModelEnumValidator.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, isDefinedParameters[0].ParameterType));
System\ServiceModel\Configuration\StandardRuntimeEnumValidator.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, enumType));
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidator.cs (2)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(TEnum))); 37throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(TEnum)));
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
1390throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Diagnostics\PerformanceCounterScope.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\HostnameComparisonMode.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\MsmqIntegration\MsmqIntegrationBinding.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("securityMode", (int)securityMode, typeof(MsmqIntegrationSecurityMode)));
System\ServiceModel\MsmqIntegration\MsmqIntegrationMessageProperty.cs (1)
173throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("priority", (int)priority, typeof(MessagePriority)));
System\ServiceModel\NetMsmqBinding.cs (1)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("mode", (int)securityMode, typeof(NetMsmqSecurityMode)));
System\ServiceModel\PeerResolvers\PeerResolverSettings.cs (1)
46throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PeerReferralPolicy)));
System\ServiceModel\PeerTransportSecuritySettings.cs (1)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PeerTransportCredentialType)));
System\ServiceModel\Security\SecurityKeyEntropyMode.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\SecurityUtils.cs (7)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, 94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("p", (int)p, 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, 146throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("impersonationLevel", (int)impersonationLevel, 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("y", (int)y, 239throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("x", (int)x,
System\ServiceModel\Security\Tokens\SecurityTokenInclusionMode.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\SecurityTokenReferenceStyle.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\X509KeyIdentifierClauseType.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\UserNamePasswordValidationMode.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\X509CertificateValidationMode.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\TransferMode.cs (1)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Configuration\ServiceModelActivitiesEnumValidator.cs (1)
37throw FxTrace.Exception.AsError(new InvalidEnumArgumentException("value", (int)value, isDefinedParameters[0].ParameterType));
System.ServiceModel.Web (1)
System\ServiceModel\Configuration\InternalEnumValidator.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int) value, isDefinedParameters[0].ParameterType));
System.Windows.Forms (221)
winforms\Managed\System\WinForms\Application.cs (1)
773throw new InvalidEnumArgumentException("value", (int)value, typeof(VisualStyleState));
winforms\Managed\System\WinForms\Button.cs (2)
86throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 191throw new InvalidEnumArgumentException("value", (int)value, typeof(DialogResult));
winforms\Managed\System\WinForms\ButtonBase.cs (4)
285throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 383throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 664throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 690throw new InvalidEnumArgumentException("value", (int)value, typeof(TextImageRelation));
winforms\Managed\System\WinForms\CheckBox.cs (3)
118throw new InvalidEnumArgumentException("value", (int)value, typeof(Appearance)); 193throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 258throw new InvalidEnumArgumentException("value", (int)value, typeof(CheckState));
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
303throw new InvalidEnumArgumentException("value", (int)value, typeof(SelectionMode)); 996throw new InvalidEnumArgumentException("value", (int)value, typeof(CheckState)); 1156throw new InvalidEnumArgumentException("value", (int)check, typeof(CheckState));
winforms\Managed\System\WinForms\Clipboard.cs (3)
351throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 443throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 570throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
winforms\Managed\System\WinForms\ColumnHeader.cs (2)
338throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment)); 419throw new InvalidEnumArgumentException("headerAutoResize", (int)headerAutoResize, typeof(ColumnHeaderAutoResizeStyle));
winforms\Managed\System\WinForms\ComboBox.cs (5)
194throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoCompleteMode)); 241throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoCompleteSource)); 511throw new InvalidEnumArgumentException("value", (int)value, typeof(DrawMode)); 640throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 1238throw new InvalidEnumArgumentException("value", (int)value, typeof(ComboBoxStyle));
winforms\Managed\System\WinForms\ContainerControl.cs (3)
148throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoScaleMode)); 205throw new InvalidEnumArgumentException("AutoValidate", (int) value, typeof(AutoValidate)); 1773throw new InvalidEnumArgumentException("validationConstraints", (int)validationConstraints, typeof(ValidationConstraints));
winforms\Managed\System\WinForms\ContextMenu.cs (1)
129throw new InvalidEnumArgumentException("RightToLeft", (int)value, typeof(RightToLeft));
winforms\Managed\System\WinForms\Control.cs (4)
767throw new InvalidEnumArgumentException("value", (int)value, typeof(AccessibleRole)); 1203throw new InvalidEnumArgumentException("value", (int)value, typeof(ImageLayout)); 3764throw new InvalidEnumArgumentException("RightToLeft", (int)value, typeof(RightToLeft)); 6482throw new InvalidEnumArgumentException("skipValue", value, typeof(GetChildAtPointSkip));
winforms\Managed\System\WinForms\Control.Ime.cs (1)
280throw new InvalidEnumArgumentException( "ImeMode", (int) value, typeof( ImeMode ) );
winforms\Managed\System\WinForms\DataGrid.cs (3)
557throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 1860throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridLineStyle)); 1899throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridParentRowsLabelStyle));
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
122throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridLineStyle));
winforms\Managed\System\WinForms\DataGridTable.cs (1)
548throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridLineStyle));
winforms\Managed\System\WinForms\DataGridView.cs (12)
1116throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAutoSizeColumnsMode)); 1199throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAutoSizeRowsMode)); 1416throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 1585throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewCellBorderStyle)); 1749throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewClipboardCopyMode)); 1854throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewHeaderBorderStyle)); 2058throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewColumnHeadersHeightSizeMode)); 2726throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewEditMode)); 4141throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewHeaderBorderStyle)); 4398throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewRowHeadersWidthSizeMode)); 4571throw new InvalidEnumArgumentException("value", (int)value, typeof(ScrollBars)); 4744throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewSelectionMode));
winforms\Managed\System\WinForms\DataGridViewAdvancedBorderStyle.cs (5)
67throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAdvancedCellBorderStyle)); 104throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAdvancedCellBorderStyle)); 155throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAdvancedCellBorderStyle)); 216throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAdvancedCellBorderStyle)); 268throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAdvancedCellBorderStyle));
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
104throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle));
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
2862throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags)); 2895throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags)); 2945throw new InvalidEnumArgumentException("flags", (int) flags, typeof(TextFormatFlags));
winforms\Managed\System\WinForms\DataGridViewCellStyle.cs (2)
119throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewContentAlignment)); 574throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewTriState));
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
293throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (2)
118throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewAutoSizeColumnMode)); 1220throw new InvalidEnumArgumentException("value", (int) autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode));
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
84throw new InvalidEnumArgumentException("value", (int)value, typeof(SortOrder));
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
324throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewComboBoxDisplayStyle)); 503throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle));
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
166throw new InvalidEnumArgumentException("value", (int)value, typeof(DataGridViewImageCellLayout));
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
156throw new InvalidEnumArgumentException("value", (int)value, typeof(LinkBehavior));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (7)
1691throw new InvalidEnumArgumentException("autoSizeColumnMode", (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode)); 1959throw new InvalidEnumArgumentException("autoSizeRowMode", (int) autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 1991throw new InvalidEnumArgumentException("rowHeadersWidthSizeMode", (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode)); 2149throw new InvalidEnumArgumentException("rowHeadersWidthSizeMode", (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode)); 2382throw new InvalidEnumArgumentException("value", (int)autoSizeRowsMode, typeof(DataGridViewAutoSizeRowsMode)); 2405throw new InvalidEnumArgumentException("autoSizeRowMode", (int) autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 28172throw new InvalidEnumArgumentException("direction", (int)direction, typeof(ListSortDirection));
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1388throw new InvalidEnumArgumentException("autoSizeRowMode", (int) autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 1792throw new InvalidEnumArgumentException("paintParts", (int)paintParts, typeof(DataGridViewPaintParts));
winforms\Managed\System\WinForms\DataObject.cs (3)
323throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 373throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 450throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
winforms\Managed\System\WinForms\DateTimePicker.cs (2)
580throw new InvalidEnumArgumentException("value", (int)value, typeof(LeftRightAlignment)); 637throw new InvalidEnumArgumentException("value", (int)value, typeof(DateTimePickerFormat));
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
156throw new InvalidEnumArgumentException("value", (int)value, typeof(ErrorBlinkStyle)); 1468throw new InvalidEnumArgumentException("value", (int)value, typeof(ErrorIconAlignment));
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
171throw new InvalidEnumArgumentException("value", (int)value, typeof(System.Environment.SpecialFolder));
winforms\Managed\System\WinForms\Form.cs (6)
708throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 843throw new InvalidEnumArgumentException("value", (int)value, typeof(FormBorderStyle)); 1221throw new InvalidEnumArgumentException("value", (int)value, typeof(DialogResult)); 2407throw new InvalidEnumArgumentException("value", (int)value, typeof(SizeGripStyle)); 2437throw new InvalidEnumArgumentException("value", (int)value, typeof(FormStartPosition)); 2762throw new InvalidEnumArgumentException("value", (int)value, typeof(FormWindowState));
winforms\Managed\System\WinForms\GroupBox.cs (2)
132throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 238throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle));
winforms\Managed\System\WinForms\HelpProvider.cs (1)
302throw new InvalidEnumArgumentException("navigator", (int)navigator, typeof(HelpNavigator));
winforms\Managed\System\WinForms\ImageList.cs (1)
177throw new InvalidEnumArgumentException("value", (int)value, typeof(ColorDepth));
winforms\Managed\System\WinForms\Label.cs (5)
288throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 417throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 661throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 696throw new InvalidEnumArgumentException("value", (int)value, typeof(AutomationLiveSetting)); 887throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment));
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (1)
671throw new InvalidEnumArgumentException("value", (int)value, typeof(DockStyle));
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (1)
294throw new InvalidEnumArgumentException("value", (int)value, typeof(FlowDirection));
winforms\Managed\System\WinForms\LinkLabel.cs (2)
289throw new InvalidEnumArgumentException("LinkBehavior", (int)value, typeof(LinkBehavior)); 878throw new InvalidEnumArgumentException("value", (int)value, typeof(DialogResult));
winforms\Managed\System\WinForms\ListBox.cs (3)
273throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 440throw new InvalidEnumArgumentException("value", (int)value, typeof(DrawMode)); 1026throw new InvalidEnumArgumentException("value", (int)value, typeof(SelectionMode));
winforms\Managed\System\WinForms\ListView.cs (9)
274throw new InvalidEnumArgumentException("value", (int)value, typeof(ItemActivation)); 313throw new InvalidEnumArgumentException("value", (int)value, typeof(ListViewAlignment)); 471throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 970throw new InvalidEnumArgumentException("value", (int)value, typeof(ColumnHeaderStyle)); 1494throw new InvalidEnumArgumentException("value", (int)value, typeof(SortOrder)); 1782throw new InvalidEnumArgumentException("value", (int)value, typeof(View)); 3417throw new InvalidEnumArgumentException("portion", (int)portion, typeof(ItemBoundsPortion)); 3511throw new InvalidEnumArgumentException("portion", (int)portion, typeof(ItemBoundsPortion)); 4924throw new InvalidEnumArgumentException("headerAutoResize", (int)headerAutoResize, typeof(ColumnHeaderAutoResizeStyle));
winforms\Managed\System\WinForms\ListViewGroup.cs (1)
135throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment));
winforms\Managed\System\WinForms\MainMenu.cs (1)
106throw new InvalidEnumArgumentException("RightToLeft", (int)value, typeof(RightToLeft));
winforms\Managed\System\WinForms\MaskedTextBox.cs (4)
445throw new InvalidEnumArgumentException("value", (int)value, typeof(MaskFormat)); 570throw new InvalidEnumArgumentException("value", (int)value, typeof(InsertKeyMode)); 1418throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment)); 1491throw new InvalidEnumArgumentException("value", (int)value, typeof(MaskFormat));
winforms\Managed\System\WinForms\MenuItem.cs (2)
513throw new InvalidEnumArgumentException("value", (int)value, typeof(MenuMerge)); 636throw new InvalidEnumArgumentException("value", (int)value, typeof(Shortcut));
winforms\Managed\System\WinForms\MessageBox.cs (3)
420throw new InvalidEnumArgumentException("buttons", (int)buttons, typeof(MessageBoxButtons)); 425throw new InvalidEnumArgumentException("icon", (int)icon, typeof(MessageBoxIcon)); 429throw new InvalidEnumArgumentException("defaultButton", (int)defaultButton, typeof(DialogResult));
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
509throw new InvalidEnumArgumentException("FirstDayOfWeek", (int)value, typeof(Day));
winforms\Managed\System\WinForms\NativeWindow.cs (1)
1345throw new InvalidEnumArgumentException("mode", (int)mode, typeof(UnhandledExceptionMode));
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
140throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolTipIcon)); 682throw new InvalidEnumArgumentException("tipIcon", (int)tipIcon, typeof(ToolTipIcon));
winforms\Managed\System\WinForms\Panel.cs (2)
104throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 142throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle));
winforms\Managed\System\WinForms\PictureBox.cs (2)
168throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 969throw new InvalidEnumArgumentException("value", (int)value, typeof(PictureBoxSizeMode));
winforms\Managed\System\WinForms\ProgressBar.cs (1)
162throw new InvalidEnumArgumentException("value", (int)value, typeof(ProgressBarStyle));
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
1079throw new InvalidEnumArgumentException("value", (int)value, typeof(PropertySort));
winforms\Managed\System\WinForms\RadioButton.cs (2)
132throw new InvalidEnumArgumentException("value", (int)value, typeof(Appearance)); 188throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment));
winforms\Managed\System\WinForms\RichTextBox.cs (6)
801throw new InvalidEnumArgumentException("value", (int)value, typeof(RichTextBoxScrollBars)); 857throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment)); 2414throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2434throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2766throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType)); 2801throw new InvalidEnumArgumentException("fileType", (int)fileType, typeof(RichTextBoxStreamType));
winforms\Managed\System\WinForms\SplitContainer.cs (3)
365throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 480throw new InvalidEnumArgumentException("value", (int)value, typeof(FixedPanel)); 560throw new InvalidEnumArgumentException("value", (int)value, typeof(Orientation));
winforms\Managed\System\WinForms\Splitter.cs (1)
255throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle));
winforms\Managed\System\WinForms\StatusBarPanel.cs (4)
95throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment)); 126throw new InvalidEnumArgumentException("value", (int)value, typeof(StatusBarPanelAutoSize)); 159throw new InvalidEnumArgumentException("value", (int)value, typeof(StatusBarPanelBorderStyle)); 363throw new InvalidEnumArgumentException("value", (int)value, typeof(StatusBarPanelStyle));
winforms\Managed\System\WinForms\TabControl.cs (4)
149throw new InvalidEnumArgumentException("value", (int)value, typeof(TabAlignment)); 187throw new InvalidEnumArgumentException("value", (int)value, typeof(TabAppearance)); 466throw new InvalidEnumArgumentException("value", (int)value, typeof(TabDrawMode)); 839throw new InvalidEnumArgumentException("value", (int)value, typeof(TabSizeMode));
winforms\Managed\System\WinForms\TextBox.cs (5)
152throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoCompleteMode)); 192throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoCompleteSource)); 269throw new InvalidEnumArgumentException("value", (int)value, typeof(CharacterCasing)); 430throw new InvalidEnumArgumentException("value", (int)value, typeof(ScrollBars)); 499throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment));
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
399throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle));
winforms\Managed\System\WinForms\ToolBar.cs (4)
167throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolBarAppearance)); 331throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 526throw new InvalidEnumArgumentException("value", (int)value, typeof(DockStyle)); 934throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolBarTextAlign));
winforms\Managed\System\WinForms\ToolBarButton.cs (1)
359throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolBarButtonStyle));
winforms\Managed\System\WinForms\ToolStrip.cs (6)
749throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripDropDownDirection)); 943throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripGripStyle)); 1352throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripLayoutStyle)); 1747throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripRenderMode)); 1887throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripTextDirection)); 2231throw new InvalidEnumArgumentException("direction", (int)direction, typeof(ArrowDirection));
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
133throw new InvalidEnumArgumentException("value", (int)value, typeof(CheckState));
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
145throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment));
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
159throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripDropDownDirection));
winforms\Managed\System\WinForms\ToolStripItem.cs (13)
323throw new InvalidEnumArgumentException("value", (int)value, typeof(AccessibleRole)); 350throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripItemAlignment)); 525throw new InvalidEnumArgumentException("value", (int)value, typeof(ImageLayout)); 682throw new InvalidEnumArgumentException("value", (int)value, typeof(DockStyle)); 772throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripItemDisplayStyle)); 1219throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 1397throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripItemImageScaling)); 1555throw new InvalidEnumArgumentException("value", (int)value, typeof(MergeAction)); 1850throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripGripStyle)); 2053throw new InvalidEnumArgumentException("RightToLeft", (int)value, typeof(RightToLeft)); 2299throw new InvalidEnumArgumentException("value", (int)value, typeof(ContentAlignment)); 2349throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripTextDirection)); 2367throw new InvalidEnumArgumentException("value", (int)value, typeof(TextImageRelation));
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
133throw new InvalidEnumArgumentException("LinkBehavior", (int)value, typeof(LinkBehavior));
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
544throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripManagerRenderMode));
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
399throw new InvalidEnumArgumentException("value", (int)value, typeof(CheckState)); 482throw new InvalidEnumArgumentException("value", (int)value, typeof(Keys));
winforms\Managed\System\WinForms\ToolStripRendererSwitcher.cs (1)
97throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolStripRenderMode));
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (2)
123throw new InvalidEnumArgumentException("value", (int)value, typeof(Border3DStyle)); 204throw new InvalidEnumArgumentException("value", (int)value, typeof(AutomationLiveSetting));
winforms\Managed\System\WinForms\ToolTip.cs (1)
532throw new InvalidEnumArgumentException("value", (int)value, typeof(ToolTipIcon));
winforms\Managed\System\WinForms\TrackBar.cs (2)
442throw new InvalidEnumArgumentException("value", (int)value, typeof(Orientation)); 629throw new InvalidEnumArgumentException("value", (int)value, typeof(TickStyle));
winforms\Managed\System\WinForms\TreeView.cs (2)
299throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 923throw new InvalidEnumArgumentException("value", (int)value, typeof(TreeViewDrawMode));
winforms\Managed\System\WinForms\UpDownBase.cs (3)
291throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle)); 631throw new InvalidEnumArgumentException("value", (int)value, typeof(HorizontalAlignment)); 668throw new InvalidEnumArgumentException("value", (int)value, typeof(LeftRightAlignment));
winforms\Managed\System\WinForms\UserControl.cs (2)
102throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 178throw new InvalidEnumArgumentException("value", (int)value, typeof(BorderStyle));
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (14)
346throw new InvalidEnumArgumentException("edges", (int)edges, typeof(Edges)); 350throw new InvalidEnumArgumentException("style", (int)style, typeof(EdgeStyle)); 354throw new InvalidEnumArgumentException("effects", (int)effects, typeof(EdgeEffects)); 598throw new InvalidEnumArgumentException("prop", (int)prop, typeof(BooleanProperty)); 616throw new InvalidEnumArgumentException("prop", (int)prop, typeof(ColorProperty)); 634throw new InvalidEnumArgumentException("prop", (int)prop, typeof(EnumProperty)); 652throw new InvalidEnumArgumentException("prop", (int)prop, typeof(FilenameProperty)); 677throw new InvalidEnumArgumentException("prop", (int)prop, typeof(FontProperty)); 723throw new InvalidEnumArgumentException("prop", (int)prop, typeof(IntegerProperty)); 748throw new InvalidEnumArgumentException("type", (int)type, typeof(ThemeSizeType)); 782throw new InvalidEnumArgumentException("type", (int)type, typeof(ThemeSizeType)); 805throw new InvalidEnumArgumentException("prop", (int)prop, typeof(PointProperty)); 827throw new InvalidEnumArgumentException("prop", (int)prop, typeof(MarginProperty)); 851throw new InvalidEnumArgumentException("prop", (int)prop, typeof(StringProperty));
UIAutomationClientsideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
188throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 942throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 1080throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit));
WindowsBase (8)
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (1)
189throw new System.ComponentModel.InvalidEnumArgumentException("origin", (int) origin, typeof(SeekOrigin));
Base\System\ComponentModel\SortDescription.cs (2)
46throw new InvalidEnumArgumentException("direction", (int)direction, typeof(ListSortDirection)); 91throw new InvalidEnumArgumentException("value", (int) value, typeof(ListSortDirection));
Base\System\Windows\Input\ModifierKeysConverter.cs (1)
115throw new InvalidEnumArgumentException("value", (int)modifiers, typeof(ModifierKeys));
Base\System\Windows\Input\TraversalRequest.cs (1)
26throw new System.ComponentModel.InvalidEnumArgumentException("focusNavigationDirection", (int)focusNavigationDirection, typeof(FocusNavigationDirection));
Base\System\Windows\Threading\Dispatcher.cs (1)
1697throw new System.ComponentModel.InvalidEnumArgumentException(parameterName, (int)priority, typeof(DispatcherPriority));
Base\System\Windows\Threading\PriorityRange.cs (2)
256throw new System.ComponentModel.InvalidEnumArgumentException("min", (int)min, typeof(DispatcherPriority)); 277throw new System.ComponentModel.InvalidEnumArgumentException("max", (int)max, typeof(DispatcherPriority));