System\Resources\ResXDataNode.cs (5)
88throw new InvalidOperationException(string.Format(SR.NotSerializableType, name, valueType.FullName));
242throw new InvalidOperationException(string.Format(SR.NotSerializableType, _name, valueType.FullName));
375string newMessage = string.Format(SR.NotSupported, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X, nse.Message);
385SR.TypeLoadException,
618throw new TypeLoadException(string.Format(SR.TypeLoadExceptionShort, FileRefType));
System\Resources\ResXResourceReader.cs (8)
148throw new InvalidOperationException(SR.InvalidResXBasePathOperation);
168throw new InvalidOperationException(SR.InvalidResXBasePathOperation);
376string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message);
383string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
389throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e);
401throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx);
437throw new ArgumentException(SR.InvalidResXFileReaderWriterTypes);
606throw new ArgumentException(string.Format(SR.InvalidResXResourceNoName, nodeInfo.ValueData));
System\Windows\Forms\ActiveX\AxHost.cs (52)
36private static readonly COMException s_invalidArgumentException = new(SR.AXInvalidArgument, unchecked((int)0x80070057));
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid));
295add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick"));
303add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick"));
472add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged"));
480add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged"));
488add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged"));
496add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged"));
504add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged"));
515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged"));
523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged"));
531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged"));
539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged"));
547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged"));
558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click"));
566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop"));
574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter"));
582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver"));
590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave"));
598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback"));
606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested"));
614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint"));
622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag"));
630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp"));
641add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick"));
649add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged"));
660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown"));
671add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress"));
682add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp"));
690add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout"));
701add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown"));
712add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter"));
723add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave"));
734add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover"));
745add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove"));
756add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp"));
767add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel"));
775add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues"));
783add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
1461throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1529throw new NotSupportedException(string.Format(SR.AXNohWnd, GetType().Name));
1608throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1843throw new InvalidOperationException(SR.AXOcxStateLoaded);
2314throw new LicenseException(GetType(), this, SR.AXNoLicenseToUse);
2778throw new InvalidOperationException(SR.UnableToInitComponent);
2845throw new InvalidOperationException(SR.UnableToInitComponent);
3024transaction = host?.CreateTransaction(SR.AXEditProperties);
3288throw new ThreadStateException(SR.ThreadMustBeSTA);
3566throw new ArgumentException(SR.AXUnknownImage, nameof(picture));
3590throw new ArgumentException(SR.AXUnknownImage, nameof(picture));
3678throw new ArgumentException(SR.AXFontUnitNotPoint, nameof(font));
3733throw new ArgumentException(SR.AXFontUnitNotPoint, nameof(font));
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (10)
31PROPCAT.Misc => SR.PropertyCategoryMisc,
32PROPCAT.Font => SR.PropertyCategoryFont,
33PROPCAT.Position => SR.PropertyCategoryPosition,
34PROPCAT.Appearance => SR.PropertyCategoryAppearance,
35PROPCAT.Behavior => SR.PropertyCategoryBehavior,
36PROPCAT.Data => SR.PropertyCategoryData,
37PROPCAT.List => SR.PropertyCategoryList,
38PROPCAT.Text => SR.PropertyCategoryText,
39PROPCAT.Scale => SR.PropertyCategoryScale,
40PROPCAT.DDE => SR.PropertyCategoryDDE,
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (9)
289throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
354throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetRefTypeInfoFailed, hr), (int)hr);
368throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
495throw new COMException(string.Format(SR.TYPEINFOPROCESSORGetDocumentationFailed, dispid, hr, "ITypeInfo", (int)hr));
602throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
699throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
828throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr);
898VT_USERDEFINED => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, "VT_USERDEFINED")),
899_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, ((int)vt).ToString(CultureInfo.InvariantCulture))),
System\Windows\Forms\Control.cs (285)
521[SRDescription(nameof(SR.ControlAccessibilityObjectDescr))]
565[SRCategory(nameof(SR.CatAccessibility))]
569[SRDescription(nameof(SR.ControlAccessibleDefaultActionDescr))]
579[SRCategory(nameof(SR.CatAccessibility))]
582[SRDescription(nameof(SR.ControlAccessibleDescriptionDescr))]
592[SRCategory(nameof(SR.CatAccessibility))]
595[SRDescription(nameof(SR.ControlAccessibleNameDescr))]
605[SRCategory(nameof(SR.CatAccessibility))]
607[SRDescription(nameof(SR.ControlAccessibleRoleDescr))]
622[SRCategory(nameof(SR.CatBehavior))]
624[SRDescription(nameof(SR.ControlAllowDropDescr))]
682[SRCategory(nameof(SR.CatLayout))]
685[SRDescription(nameof(SR.ControlAnchorDescr))]
693[SRCategory(nameof(SR.CatLayout))]
697[SRDescription(nameof(SR.ControlAutoSizeDescr))]
729[SRCategory(nameof(SR.CatPropertyChanged))]
730[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
824[SRCategory(nameof(SR.CatData))]
863[SRCategory(nameof(SR.CatAppearance))]
865[SRDescription(nameof(SR.ControlBackColorDescr))]
906throw new ArgumentException(SR.TransparentBackColorNotAllowed);
918[SRCategory(nameof(SR.CatPropertyChanged))]
919[SRDescription(nameof(SR.ControlOnBackColorChangedDescr))]
929[SRCategory(nameof(SR.CatAppearance))]
932[SRDescription(nameof(SR.ControlBackgroundImageDescr))]
948[SRCategory(nameof(SR.CatPropertyChanged))]
949[SRDescription(nameof(SR.ControlOnBackgroundImageChangedDescr))]
959[SRCategory(nameof(SR.CatAppearance))]
962[SRDescription(nameof(SR.ControlBackgroundImageLayoutDescr))]
992[SRCategory(nameof(SR.CatPropertyChanged))]
993[SRDescription(nameof(SR.ControlOnBackgroundImageLayoutChangedDescr))]
1068[SRDescription(nameof(SR.ControlBindingContextDescr))]
1075[SRCategory(nameof(SR.CatPropertyChanged))]
1076[SRDescription(nameof(SR.ControlOnBindingContextChangedDescr))]
1089[SRDescription(nameof(SR.ControlBottomDescr))]
1090[SRCategory(nameof(SR.CatLayout))]
1100[SRDescription(nameof(SR.ControlBoundsDescr))]
1101[SRCategory(nameof(SR.CatLayout))]
1117[SRCategory(nameof(SR.CatFocus))]
1118[SRDescription(nameof(SR.ControlCanFocusDescr))]
1135[SRCategory(nameof(SR.CatFocus))]
1136[SRDescription(nameof(SR.ControlCanSelectDescr))]
1145[SRCategory(nameof(SR.CatFocus))]
1146[SRDescription(nameof(SR.ControlCaptureDescr))]
1171[SRCategory(nameof(SR.CatFocus))]
1173[SRDescription(nameof(SR.ControlCausesValidationDescr))]
1187[SRCategory(nameof(SR.CatPropertyChanged))]
1188[SRDescription(nameof(SR.ControlOnCausesValidationChangedDescr))]
1246[SRDescription(nameof(SR.ControlCheckForIllegalCrossThreadCalls))]
1256[SRCategory(nameof(SR.CatLayout))]
1257[SRDescription(nameof(SR.ControlClientRectangleDescr))]
1263[SRCategory(nameof(SR.CatLayout))]
1267[SRDescription(nameof(SR.ControlClientSizeDescr))]
1277[SRCategory(nameof(SR.CatPropertyChanged))]
1278[SRDescription(nameof(SR.ControlOnClientSizeChangedDescr))]
1291[SRDescription(nameof(SR.ControlCompanyNameDescr))]
1301[SRDescription(nameof(SR.ControlContainsFocusDescr))]
1321[SRCategory(nameof(SR.CatBehavior))]
1323[SRDescription(nameof(SR.ControlContextMenuDescr))]
1350[SRCategory(nameof(SR.CatPropertyChanged))]
1351[SRDescription(nameof(SR.ControlContextMenuStripChangedDescr))]
1363[SRDescription(nameof(SR.ControlControlsDescr))]
1372[SRDescription(nameof(SR.ControlCreatedDescr))]
1395throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32));
1550[SRCategory(nameof(SR.CatAppearance))]
1551[SRDescription(nameof(SR.ControlCursorDescr))]
1603[SRCategory(nameof(SR.CatPropertyChanged))]
1604[SRDescription(nameof(SR.ControlOnCursorChangedDescr))]
1615[SRCategory(nameof(SR.CatData))]
1616[SRDescription(nameof(SR.ControlBindingsDescr))]
1625throw new NotSupportedException(SR.BindingNotSupported);
1742[SRDescription(nameof(SR.ControlDisplayRectangleDescr))]
1753[SRDescription(nameof(SR.ControlDisposedDescr))]
1775[SRDescription(nameof(SR.ControlDisposingDescr))]
1784[SRCategory(nameof(SR.CatLayout))]
1788[SRDescription(nameof(SR.ControlDockDescr))]
1803[SRCategory(nameof(SR.CatPropertyChanged))]
1804[SRDescription(nameof(SR.ControlOnDockChangedDescr))]
1814[SRCategory(nameof(SR.CatBehavior))]
1815[SRDescription(nameof(SR.ControlDoubleBufferedDescr))]
1840[SRCategory(nameof(SR.CatBehavior))]
1843[SRDescription(nameof(SR.ControlEnabledDescr))]
1871[SRCategory(nameof(SR.CatPropertyChanged))]
1872[SRDescription(nameof(SR.ControlOnEnabledChangedDescr))]
1885[SRDescription(nameof(SR.ControlFocusedDescr))]
1893[SRCategory(nameof(SR.CatAppearance))]
1897[SRDescription(nameof(SR.ControlFontDescr))]
1995[SRCategory(nameof(SR.CatPropertyChanged))]
1996[SRDescription(nameof(SR.ControlOnFontChangedDescr))]
2089[SRCategory(nameof(SR.CatAppearance))]
2091[SRDescription(nameof(SR.ControlForeColorDescr))]
2134[SRCategory(nameof(SR.CatPropertyChanged))]
2135[SRDescription(nameof(SR.ControlOnForeColorChangedDescr))]
2207[SRDescription(nameof(SR.ControlHandleDescr))]
2214throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name));
2238[SRDescription(nameof(SR.ControlHasChildrenDescr))]
2244[SRCategory(nameof(SR.CatLayout))]
2248[SRDescription(nameof(SR.ControlHeightDescr))]
2308[SRDescription(nameof(SR.ControlHandleCreatedDescr))]
2382[SRDescription(nameof(SR.ControlInvokeRequiredDescr))]
2414[SRCategory(nameof(SR.CatBehavior))]
2418[SRDescription(nameof(SR.ControlIsAccessibleDescr))]
2459[SRCategory(nameof(SR.CatLayout))]
2463[SRDescription(nameof(SR.IsMirroredDescr))]
2496[SRCategory(nameof(SR.CatLayout))]
2500[SRDescription(nameof(SR.ControlLeftDescr))]
2510[SRCategory(nameof(SR.CatLayout))]
2512[SRDescription(nameof(SR.ControlLocationDescr))]
2519[SRCategory(nameof(SR.CatPropertyChanged))]
2520[SRDescription(nameof(SR.ControlOnLocationChangedDescr))]
2527[SRDescription(nameof(SR.ControlMarginDescr))]
2528[SRCategory(nameof(SR.CatLayout))]
2550[SRCategory(nameof(SR.CatLayout))]
2551[SRDescription(nameof(SR.ControlOnMarginChangedDescr))]
2558[SRCategory(nameof(SR.CatLayout))]
2560[SRDescription(nameof(SR.ControlMaximumSizeDescr))]
2581[SRCategory(nameof(SR.CatLayout))]
2583[SRDescription(nameof(SR.ControlMinimumSizeDescr))]
2704[SRCategory(nameof(SR.CatBehavior))]
2707[SRDescription(nameof(SR.ControlParentDescr))]
2741[SRDescription(nameof(SR.ControlProductNameDescr))]
2750[SRDescription(nameof(SR.ControlProductVersionDescr))]
2766[SRCategory(nameof(SR.CatBehavior))]
2770[SRDescription(nameof(SR.ControlRecreatingHandleDescr))]
2803[SRCategory(nameof(SR.CatLayout))]
2807[SRDescription(nameof(SR.ControlRegionDescr))]
2854[SRCategory(nameof(SR.CatPropertyChanged))]
2855[SRDescription(nameof(SR.ControlRegionChangedDescr))]
2920[SRDescription(nameof(SR.ControlResizeRedrawDescr))]
2930[SRCategory(nameof(SR.CatLayout))]
2934[SRDescription(nameof(SR.ControlRightDescr))]
2942[SRCategory(nameof(SR.CatAppearance))]
2945[SRDescription(nameof(SR.ControlRightToLeftDescr))]
2982[SRCategory(nameof(SR.CatPropertyChanged))]
2983[SRDescription(nameof(SR.ControlOnRightToLeftChangedDescr))]
3102[SRCategory(nameof(SR.CatLayout))]
3104[SRDescription(nameof(SR.ControlSizeDescr))]
3111[SRCategory(nameof(SR.CatPropertyChanged))]
3112[SRDescription(nameof(SR.ControlOnSizeChangedDescr))]
3122[SRCategory(nameof(SR.CatBehavior))]
3125[SRDescription(nameof(SR.ControlTabIndexDescr))]
3141[SRCategory(nameof(SR.CatPropertyChanged))]
3142[SRDescription(nameof(SR.ControlOnTabIndexChangedDescr))]
3153[SRCategory(nameof(SR.CatBehavior))]
3156[SRDescription(nameof(SR.ControlTabStopDescr))]
3188[SRCategory(nameof(SR.CatPropertyChanged))]
3189[SRDescription(nameof(SR.ControlOnTabStopChangedDescr))]
3196[SRCategory(nameof(SR.CatData))]
3199[SRDescription(nameof(SR.ControlTagDescr))]
3211[SRCategory(nameof(SR.CatAppearance))]
3215[SRDescription(nameof(SR.ControlTextDescr))]
3251[SRCategory(nameof(SR.CatPropertyChanged))]
3252[SRDescription(nameof(SR.ControlOnTextChangedDescr))]
3262[SRCategory(nameof(SR.CatLayout))]
3266[SRDescription(nameof(SR.ControlTopDescr))]
3278[SRCategory(nameof(SR.CatBehavior))]
3282[SRDescription(nameof(SR.ControlTopLevelControlDescr))]
3443[SRCategory(nameof(SR.CatAppearance))]
3444[SRDescription(nameof(SR.ControlUseWaitCursorDescr))]
3527[SRCategory(nameof(SR.CatBehavior))]
3529[SRDescription(nameof(SR.ControlVisibleDescr))]
3548[SRCategory(nameof(SR.CatPropertyChanged))]
3549[SRDescription(nameof(SR.ControlOnVisibleChangedDescr))]
3595throw new InvalidAsynchronousStateException(SR.ThreadNoLongerValid);
3619[SRCategory(nameof(SR.CatLayout))]
3623[SRDescription(nameof(SR.ControlWidthDescr))]
3651[SRCategory(nameof(SR.CatBehavior))]
3655[SRDescription(nameof(SR.ControlWindowTargetDescr))]
3702[SRCategory(nameof(SR.CatAction))]
3703[SRDescription(nameof(SR.ControlOnClickDescr))]
3713[SRCategory(nameof(SR.CatBehavior))]
3716[SRDescription(nameof(SR.ControlOnControlAddedDescr))]
3726[SRCategory(nameof(SR.CatBehavior))]
3729[SRDescription(nameof(SR.ControlOnControlRemovedDescr))]
3739[SRCategory(nameof(SR.CatData))]
3742[SRDescription(nameof(SR.ControlDataContextChangedDescr))]
3749[SRCategory(nameof(SR.CatDragDrop))]
3750[SRDescription(nameof(SR.ControlOnDragDropDescr))]
3757[SRCategory(nameof(SR.CatDragDrop))]
3758[SRDescription(nameof(SR.ControlOnDragEnterDescr))]
3765[SRCategory(nameof(SR.CatDragDrop))]
3766[SRDescription(nameof(SR.ControlOnDragOverDescr))]
3773[SRCategory(nameof(SR.CatDragDrop))]
3774[SRDescription(nameof(SR.ControlOnDragLeaveDescr))]
3781[SRCategory(nameof(SR.CatDragDrop))]
3782[SRDescription(nameof(SR.ControlOnGiveFeedbackDescr))]
3792[SRCategory(nameof(SR.CatPrivate))]
3795[SRDescription(nameof(SR.ControlOnCreateHandleDescr))]
3805[SRCategory(nameof(SR.CatPrivate))]
3808[SRDescription(nameof(SR.ControlOnDestroyHandleDescr))]
3815[SRCategory(nameof(SR.CatBehavior))]
3816[SRDescription(nameof(SR.ControlOnHelpDescr))]
3823[SRCategory(nameof(SR.CatAppearance))]
3826[SRDescription(nameof(SR.ControlOnInvalidateDescr))]
3839[SRDescription(nameof(SR.ControlPaddingDescr))]
3840[SRCategory(nameof(SR.CatLayout))]
3869[SRCategory(nameof(SR.CatLayout))]
3870[SRDescription(nameof(SR.ControlOnPaddingChangedDescr))]
3877[SRCategory(nameof(SR.CatAppearance))]
3878[SRDescription(nameof(SR.ControlOnPaintDescr))]
3885[SRCategory(nameof(SR.CatDragDrop))]
3886[SRDescription(nameof(SR.ControlOnQueryContinueDragDescr))]
3893[SRCategory(nameof(SR.CatBehavior))]
3894[SRDescription(nameof(SR.ControlOnQueryAccessibilityHelpDescr))]
3904[SRCategory(nameof(SR.CatAction))]
3905[SRDescription(nameof(SR.ControlOnDoubleClickDescr))]
3915[SRCategory(nameof(SR.CatFocus))]
3916[SRDescription(nameof(SR.ControlOnEnterDescr))]
3926[SRCategory(nameof(SR.CatFocus))]
3927[SRDescription(nameof(SR.ControlOnGotFocusDescr))]
3939[SRCategory(nameof(SR.CatKey))]
3940[SRDescription(nameof(SR.ControlOnKeyDownDescr))]
3950[SRCategory(nameof(SR.CatKey))]
3951[SRDescription(nameof(SR.ControlOnKeyPressDescr))]
3961[SRCategory(nameof(SR.CatKey))]
3962[SRDescription(nameof(SR.ControlOnKeyUpDescr))]
3969[SRCategory(nameof(SR.CatLayout))]
3970[SRDescription(nameof(SR.ControlOnLayoutDescr))]
3980[SRCategory(nameof(SR.CatFocus))]
3981[SRDescription(nameof(SR.ControlOnLeaveDescr))]
3991[SRCategory(nameof(SR.CatFocus))]
3992[SRDescription(nameof(SR.ControlOnLostFocusDescr))]
4004[SRCategory(nameof(SR.CatAction))]
4005[SRDescription(nameof(SR.ControlOnMouseClickDescr))]
4015[SRCategory(nameof(SR.CatAction))]
4016[SRDescription(nameof(SR.ControlOnMouseDoubleClickDescr))]
4026[SRCategory(nameof(SR.CatAction))]
4027[SRDescription(nameof(SR.ControlOnMouseCaptureChangedDescr))]
4038[SRCategory(nameof(SR.CatMouse))]
4039[SRDescription(nameof(SR.ControlOnMouseDownDescr))]
4049[SRCategory(nameof(SR.CatMouse))]
4050[SRDescription(nameof(SR.ControlOnMouseEnterDescr))]
4060[SRCategory(nameof(SR.CatMouse))]
4061[SRDescription(nameof(SR.ControlOnMouseLeaveDescr))]
4073[SRCategory(nameof(SR.CatLayout))]
4074[SRDescription(nameof(SR.ControlOnDpiChangedBeforeParentDescr))]
4086[SRCategory(nameof(SR.CatLayout))]
4087[SRDescription(nameof(SR.ControlOnDpiChangedAfterParentDescr))]
4097[SRCategory(nameof(SR.CatMouse))]
4098[SRDescription(nameof(SR.ControlOnMouseHoverDescr))]
4108[SRCategory(nameof(SR.CatMouse))]
4109[SRDescription(nameof(SR.ControlOnMouseMoveDescr))]
4119[SRCategory(nameof(SR.CatMouse))]
4120[SRDescription(nameof(SR.ControlOnMouseUpDescr))]
4130[SRCategory(nameof(SR.CatMouse))]
4131[SRDescription(nameof(SR.ControlOnMouseWheelDescr))]
4143[SRCategory(nameof(SR.CatLayout))]
4144[SRDescription(nameof(SR.ControlOnMoveDescr))]
4154[SRCategory(nameof(SR.CatKey))]
4155[SRDescription(nameof(SR.PreviewKeyDownDescr))]
4165[SRCategory(nameof(SR.CatLayout))]
4166[SRDescription(nameof(SR.ControlOnResizeDescr))]
4174[SRCategory(nameof(SR.CatBehavior))]
4175[SRDescription(nameof(SR.ControlOnChangeUICuesDescr))]
4182[SRCategory(nameof(SR.CatBehavior))]
4183[SRDescription(nameof(SR.ControlOnStyleChangedDescr))]
4190[SRCategory(nameof(SR.CatBehavior))]
4191[SRDescription(nameof(SR.ControlOnSystemColorsChangedDescr))]
4201[SRCategory(nameof(SR.CatFocus))]
4202[SRDescription(nameof(SR.ControlOnValidatingDescr))]
4212[SRCategory(nameof(SR.CatFocus))]
4213[SRDescription(nameof(SR.ControlOnValidatedDescr))]
4330[SRCategory(nameof(SR.CatPropertyChanged))]
4331[SRDescription(nameof(SR.ControlOnParentChangedDescr))]
4457throw new ArgumentException(SR.CircularOwner);
4470throw new ArgumentException(SR.CircularOwner);
4809throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose"));
4911throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
5053throw new ArgumentException(SR.ControlBadAsyncResult, nameof(asyncResult));
5693string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl));
5696string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent));
5703SR.ControlsCollectionShouldNotBeEmptyInGetNextControl,
6316throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly);
6500throw new InvalidOperationException(SR.ErrorNoMarshalingThread);
6751throw new NotSupportedException(SR.BindingNotSupported);
7091throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9361throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9570throw new ThreadStateException(SR.ThreadMustBeSTA);
9596throw new InvalidOperationException(SR.DragDropRegFailed, e);
10312throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10328throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10381throw new InvalidOperationException(SR.TopLevelNotAllowedIfActiveX);
10395throw new ArgumentException(SR.TopLevelParentedControl, nameof(value));
11359throw new InvalidOperationException(SR.RichControlLresult, e);
12735throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (356)
16[SRDescription(nameof(SR.DescriptionDataGridView))]
457_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName;
465_vertScrollBar.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
646[SRCategory(nameof(SR.CatBehavior))]
647[SRDescription(nameof(SR.DataGridView_AllowUserToAddRowsDescr))]
670[SRCategory(nameof(SR.CatPropertyChanged))]
671[SRDescription(nameof(SR.DataGridViewOnAllowUserToAddRowsChangedDescr))]
679[SRCategory(nameof(SR.CatBehavior))]
680[SRDescription(nameof(SR.DataGridView_AllowUserToDeleteRowsDescr))]
698[SRCategory(nameof(SR.CatPropertyChanged))]
699[SRDescription(nameof(SR.DataGridViewOnAllowUserToDeleteRowsChangedDescr))]
707[SRCategory(nameof(SR.CatBehavior))]
708[SRDescription(nameof(SR.DataGridView_AllowUserToOrderColumnsDescr))]
725[SRCategory(nameof(SR.CatPropertyChanged))]
726[SRDescription(nameof(SR.DataGridViewOnAllowUserToOrderColumnsChangedDescr))]
738[SRCategory(nameof(SR.CatBehavior))]
739[SRDescription(nameof(SR.DataGridView_AllowUserToResizeColumnsDescr))]
753[SRCategory(nameof(SR.CatPropertyChanged))]
754[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeColumnsChangedDescr))]
766[SRCategory(nameof(SR.CatBehavior))]
767[SRDescription(nameof(SR.DataGridView_AllowUserToResizeRowsDescr))]
781[SRCategory(nameof(SR.CatPropertyChanged))]
782[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeRowsChangedDescr))]
789[SRCategory(nameof(SR.CatAppearance))]
790[SRDescription(nameof(SR.DataGridView_AlternatingRowsDefaultCellStyleDescr))]
820[SRCategory(nameof(SR.CatPropertyChanged))]
821[SRDescription(nameof(SR.DataGridViewAlternatingRowsDefaultCellStyleChangedDescr))]
874[SRCategory(nameof(SR.CatLayout))]
875[SRDescription(nameof(SR.DataGridView_AutoSizeColumnsModeDescr))]
904throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeColumnsInvisibleColumnHeaders);
910throw new InvalidOperationException(SR.DataGridView_CannotAutoFillFrozenColumns);
928[SRCategory(nameof(SR.CatPropertyChanged))]
929[SRDescription(nameof(SR.DataGridViewAutoSizeColumnsModeChangedDescr))]
940[SRCategory(nameof(SR.CatLayout))]
941[SRDescription(nameof(SR.DataGridView_AutoSizeRowsModeDescr))]
964throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
976[SRCategory(nameof(SR.CatPropertyChanged))]
977[SRDescription(nameof(SR.DataGridViewAutoSizeRowsModeChangedDescr))]
1004[SRCategory(nameof(SR.CatAppearance))]
1005[SRDescription(nameof(SR.DataGridViewBackgroundColorDescr))]
1012throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor"));
1014throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor"));
1024[SRCategory(nameof(SR.CatPropertyChanged))]
1025[SRDescription(nameof(SR.DataGridViewBackgroundColorChangedDescr))]
1067[SRCategory(nameof(SR.CatAppearance))]
1068[SRDescription(nameof(SR.DataGridView_BorderStyleDescr))]
1097[SRCategory(nameof(SR.CatPropertyChanged))]
1098[SRDescription(nameof(SR.DataGridViewBorderStyleChangedDescr))]
1146[SRCategory(nameof(SR.CatAppearance))]
1147[SRDescription(nameof(SR.DataGridView_CellBorderStyleDescr))]
1240throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle"));
1317[SRCategory(nameof(SR.CatPropertyChanged))]
1318[SRDescription(nameof(SR.DataGridView_CellBorderStyleChangedDescr))]
1366[SRCategory(nameof(SR.CatBehavior))]
1367[SRDescription(nameof(SR.DataGridView_ClipboardCopyModeDescr))]
1392throw new InvalidOperationException(SR.DataGridView_CannotSetColumnCountOnDataBoundDataGridView);
1434[SRCategory(nameof(SR.CatAppearance))]
1435[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleDescr))]
1457throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle"));
1502[SRCategory(nameof(SR.CatPropertyChanged))]
1503[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleChangedDescr))]
1510[SRCategory(nameof(SR.CatAppearance))]
1511[SRDescription(nameof(SR.DataGridView_ColumnHeadersDefaultCellStyleDescr))]
1563[SRCategory(nameof(SR.CatPropertyChanged))]
1564[SRDescription(nameof(SR.DataGridViewColumnHeadersDefaultCellStyleChangedDescr))]
1571[SRCategory(nameof(SR.CatAppearance))]
1573[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightDescr))]
1593[SRCategory(nameof(SR.CatPropertyChanged))]
1594[SRDescription(nameof(SR.DataGridViewColumnHeadersHeightChangedDescr))]
1610[SRCategory(nameof(SR.CatBehavior))]
1611[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeDescr))]
1628[SRCategory(nameof(SR.CatPropertyChanged))]
1629[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeChangedDescr))]
1640[SRCategory(nameof(SR.CatAppearance))]
1642[SRDescription(nameof(SR.DataGridViewColumnHeadersVisibleDescr))]
1658throw new InvalidOperationException(SR.DataGridView_ColumnHeadersCannotBeInvisible);
1734throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1741throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
1746throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
1751throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1767throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1881[SRCategory(nameof(SR.CatData))]
1883[SRDescription(nameof(SR.DataGridViewDataMemberDescr))]
1900[SRCategory(nameof(SR.CatPropertyChanged))]
1901[SRDescription(nameof(SR.DataGridViewDataMemberChangedDescr))]
1909[SRCategory(nameof(SR.CatData))]
1912[SRDescription(nameof(SR.DataGridViewDataSourceDescr))]
1957[SRCategory(nameof(SR.CatPropertyChanged))]
1958[SRDescription(nameof(SR.DataGridViewDataSourceChangedDescr))]
1965[SRCategory(nameof(SR.CatAppearance))]
1966[SRDescription(nameof(SR.DataGridView_DefaultCellStyleDescr))]
2077[SRCategory(nameof(SR.CatPropertyChanged))]
2078[SRDescription(nameof(SR.DataGridViewDefaultCellStyleChangedDescr))]
2148[SRCategory(nameof(SR.CatBehavior))]
2150[SRDescription(nameof(SR.DataGridView_EditModeDescr))]
2167[SRCategory(nameof(SR.CatPropertyChanged))]
2168[SRDescription(nameof(SR.DataGridView_EditModeChangedDescr))]
2241AccessibleName = SR.DataGridView_AccEditingPanelAccName
2262[SRCategory(nameof(SR.CatAppearance))]
2264[SRDescription(nameof(SR.DataGridView_EnableHeadersVisualStylesDescr))]
2300throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
2305throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeAHeaderOrSharedCell);
2315throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeInvisible);
2456throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeInvisible);
2461throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeFrozen);
2472throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedColumns);
2479throw new InvalidOperationException(SR.DataGridView_FrozenColumnsPreventFirstDisplayedScrollingColumn);
2536throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeInvisible);
2541throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeFrozen);
2552throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedRows);
2559throw new InvalidOperationException(SR.DataGridView_FrozenRowsPreventFirstDisplayedScrollingRow);
2640[SRCategory(nameof(SR.CatAppearance))]
2641[SRDescription(nameof(SR.DataGridViewGridColorDescr))]
2648throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor)));
2650throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor)));
2660[SRCategory(nameof(SR.CatPropertyChanged))]
2661[SRDescription(nameof(SR.DataGridViewOnGridColorChangedDescr))]
2991[SRCategory(nameof(SR.CatBehavior))]
2993[SRDescription(nameof(SR.DataGridView_MultiSelectDescr))]
3008[SRCategory(nameof(SR.CatPropertyChanged))]
3009[SRDescription(nameof(SR.DataGridViewOnMultiSelectChangedDescr))]
3058[SRCategory(nameof(SR.CatBehavior))]
3059[SRDescription(nameof(SR.DataGridView_ReadOnlyDescr))]
3085throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
3132[SRCategory(nameof(SR.CatPropertyChanged))]
3133[SRDescription(nameof(SR.DataGridViewOnReadOnlyChangedDescr))]
3150throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3184throw new InvalidOperationException(SR.DataGridView_CannotSetRowCountOnDataBoundDataGridView);
3230[SRCategory(nameof(SR.CatAppearance))]
3231[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleDescr))]
3254throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle"));
3289[SRCategory(nameof(SR.CatPropertyChanged))]
3290[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleChangedDescr))]
3297[SRCategory(nameof(SR.CatAppearance))]
3298[SRDescription(nameof(SR.DataGridView_RowHeadersDefaultCellStyleDescr))]
3328[SRCategory(nameof(SR.CatPropertyChanged))]
3329[SRDescription(nameof(SR.DataGridViewRowHeadersDefaultCellStyleChangedDescr))]
3340[SRCategory(nameof(SR.CatAppearance))]
3342[SRDescription(nameof(SR.DataGridViewRowHeadersVisibleDescr))]
3353throw new InvalidOperationException(SR.DataGridView_RowHeadersCannotBeInvisible);
3377[SRCategory(nameof(SR.CatLayout))]
3379[SRDescription(nameof(SR.DataGridView_RowHeadersWidthDescr))]
3431[SRCategory(nameof(SR.CatPropertyChanged))]
3432[SRDescription(nameof(SR.DataGridViewRowHeadersWidthChangedDescr))]
3448[SRCategory(nameof(SR.CatBehavior))]
3449[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeDescr))]
3471[SRCategory(nameof(SR.CatPropertyChanged))]
3472[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeChangedDescr))]
3490[SRCategory(nameof(SR.CatAppearance))]
3491[SRDescription(nameof(SR.DataGridView_RowsDefaultCellStyleDescr))]
3521[SRCategory(nameof(SR.CatPropertyChanged))]
3522[SRDescription(nameof(SR.DataGridViewRowsDefaultCellStyleChangedDescr))]
3529[SRCategory(nameof(SR.CatAppearance))]
3531[SRDescription(nameof(SR.DataGridView_RowTemplateDescr))]
3549throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
3579[SRCategory(nameof(SR.CatLayout))]
3580[SRDescription(nameof(SR.DataGridView_ScrollBarsDescr))]
3602throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3739[SRCategory(nameof(SR.CatBehavior))]
3741[SRDescription(nameof(SR.DataGridView_SelectionModeDescr))]
3759throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString()));
3771[SRCategory(nameof(SR.CatAppearance))]
3772[SRDescription(nameof(SR.DataGridView_ShowCellErrorsDescr))]
3824[SRCategory(nameof(SR.CatAppearance))]
3825[SRDescription(nameof(SR.DataGridView_ShowCellToolTipsDescr))]
3876[SRCategory(nameof(SR.CatAppearance))]
3877[SRDescription(nameof(SR.DataGridView_ShowEditingIconDescr))]
3912[SRCategory(nameof(SR.CatAppearance))]
3913[SRDescription(nameof(SR.DataGridView_ShowRowErrorsDescr))]
3971[SRCategory(nameof(SR.CatBehavior))]
3974[SRDescription(nameof(SR.DataGridView_StandardTabDescr))]
4135[SRCategory(nameof(SR.CatBehavior))]
4138[SRDescription(nameof(SR.DataGridViewVirtualModeDescr))]
4158[SRCategory(nameof(SR.CatPropertyChanged))]
4159[SRDescription(nameof(SR.DataGridViewAutoSizeColumnModeChangedDescr))]
4166[SRCategory(nameof(SR.CatAction))]
4167[SRDescription(nameof(SR.DataGridView_CancelRowEditDescr))]
4174[SRCategory(nameof(SR.CatData))]
4175[SRDescription(nameof(SR.DataGridView_CellBeginEditDescr))]
4182[SRCategory(nameof(SR.CatMouse))]
4183[SRDescription(nameof(SR.DataGridView_CellClickDescr))]
4190[SRCategory(nameof(SR.CatMouse))]
4191[SRDescription(nameof(SR.DataGridView_CellContentClick))]
4198[SRCategory(nameof(SR.CatMouse))]
4199[SRDescription(nameof(SR.DataGridView_CellContentDoubleClick))]
4206[SRCategory(nameof(SR.CatAction))]
4207[SRDescription(nameof(SR.DataGridView_CellContextMenuStripChanged))]
4215[SRCategory(nameof(SR.CatBehavior))]
4216[SRDescription(nameof(SR.DataGridView_CellContextMenuStripNeeded))]
4224[SRCategory(nameof(SR.CatMouse))]
4225[SRDescription(nameof(SR.DataGridView_CellDoubleClickDescr))]
4232[SRCategory(nameof(SR.CatData))]
4233[SRDescription(nameof(SR.DataGridView_CellEndEditDescr))]
4240[SRCategory(nameof(SR.CatFocus))]
4241[SRDescription(nameof(SR.DataGridView_CellEnterDescr))]
4248[SRCategory(nameof(SR.CatPropertyChanged))]
4249[SRDescription(nameof(SR.DataGridView_CellErrorTextChangedDescr))]
4256[SRCategory(nameof(SR.CatData))]
4258[SRDescription(nameof(SR.DataGridView_CellErrorTextNeededDescr))]
4265[SRCategory(nameof(SR.CatDisplay))]
4266[SRDescription(nameof(SR.DataGridView_CellFormattingDescr))]
4273[SRCategory(nameof(SR.CatFocus))]
4274[SRDescription(nameof(SR.DataGridView_CellLeaveDescr))]
4281[SRCategory(nameof(SR.CatMouse))]
4282[SRDescription(nameof(SR.DataGridView_CellMouseClickDescr))]
4289[SRCategory(nameof(SR.CatMouse))]
4290[SRDescription(nameof(SR.DataGridView_CellMouseDoubleClickDescr))]
4297[SRCategory(nameof(SR.CatMouse))]
4298[SRDescription(nameof(SR.DataGridView_CellMouseDownDescr))]
4305[SRCategory(nameof(SR.CatMouse))]
4306[SRDescription(nameof(SR.DataGridView_CellMouseEnterDescr))]
4313[SRCategory(nameof(SR.CatMouse))]
4314[SRDescription(nameof(SR.DataGridView_CellMouseLeaveDescr))]
4321[SRCategory(nameof(SR.CatMouse))]
4322[SRDescription(nameof(SR.DataGridView_CellMouseMoveDescr))]
4329[SRCategory(nameof(SR.CatMouse))]
4330[SRDescription(nameof(SR.DataGridView_CellMouseUpDescr))]
4337[SRCategory(nameof(SR.CatDisplay))]
4338[SRDescription(nameof(SR.DataGridView_CellPaintingDescr))]
4345[SRCategory(nameof(SR.CatDisplay))]
4346[SRDescription(nameof(SR.DataGridView_CellParsingDescr))]
4353[SRCategory(nameof(SR.CatBehavior))]
4354[SRDescription(nameof(SR.DataGridView_CellStateChangedDescr))]
4361[SRCategory(nameof(SR.CatPropertyChanged))]
4362[SRDescription(nameof(SR.DataGridView_CellStyleChangedDescr))]
4369[SRCategory(nameof(SR.CatPropertyChanged))]
4370[SRDescription(nameof(SR.DataGridView_CellStyleContentChangedDescr))]
4377[SRCategory(nameof(SR.CatPropertyChanged))]
4378[SRDescription(nameof(SR.DataGridView_CellToolTipTextChangedDescr))]
4385[SRCategory(nameof(SR.CatBehavior))]
4386[SRDescription(nameof(SR.DataGridView_CellToolTipTextNeededDescr))]
4394[SRCategory(nameof(SR.CatFocus))]
4395[SRDescription(nameof(SR.DataGridView_CellValidatedDescr))]
4402[SRCategory(nameof(SR.CatFocus))]
4403[SRDescription(nameof(SR.DataGridView_CellValidatingDescr))]
4410[SRCategory(nameof(SR.CatAction))]
4411[SRDescription(nameof(SR.DataGridView_CellValueChangedDescr))]
4418[SRCategory(nameof(SR.CatData))]
4420[SRDescription(nameof(SR.DataGridView_CellValueNeededDescr))]
4427[SRCategory(nameof(SR.CatData))]
4429[SRDescription(nameof(SR.DataGridView_CellValuePushedDescr))]
4436[SRCategory(nameof(SR.CatAction))]
4437[SRDescription(nameof(SR.DataGridView_ColumnAddedDescr))]
4444[SRCategory(nameof(SR.CatPropertyChanged))]
4445[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripChangedDescr))]
4452[SRCategory(nameof(SR.CatPropertyChanged))]
4453[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameChangedDescr))]
4460[SRCategory(nameof(SR.CatPropertyChanged))]
4461[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleChangedDescr))]
4468[SRCategory(nameof(SR.CatPropertyChanged))]
4469[SRDescription(nameof(SR.DataGridView_ColumnDisplayIndexChangedDescr))]
4476[SRCategory(nameof(SR.CatMouse))]
4477[SRDescription(nameof(SR.DataGridView_ColumnDividerDoubleClickDescr))]
4484[SRCategory(nameof(SR.CatPropertyChanged))]
4485[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthChangedDescr))]
4492[SRCategory(nameof(SR.CatMouse))]
4493[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseClickDescr))]
4500[SRCategory(nameof(SR.CatMouse))]
4501[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseDoubleClickDescr))]
4508[SRCategory(nameof(SR.CatPropertyChanged))]
4509[SRDescription(nameof(SR.DataGridView_ColumnHeaderCellChangedDescr))]
4516[SRCategory(nameof(SR.CatPropertyChanged))]
4517[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthChangedDescr))]
4524[SRCategory(nameof(SR.CatPropertyChanged))]
4525[SRDescription(nameof(SR.DataGridView_ColumnNameChangedDescr))]
4532[SRCategory(nameof(SR.CatAction))]
4533[SRDescription(nameof(SR.DataGridView_ColumnRemovedDescr))]
4540[SRCategory(nameof(SR.CatBehavior))]
4541[SRDescription(nameof(SR.DataGridViewColumnSortModeChangedDescr))]
4548[SRCategory(nameof(SR.CatBehavior))]
4549[SRDescription(nameof(SR.DataGridView_ColumnStateChangedDescr))]
4556[SRCategory(nameof(SR.CatPropertyChanged))]
4557[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextChangedDescr))]
4564[SRCategory(nameof(SR.CatAction))]
4565[SRDescription(nameof(SR.DataGridView_ColumnWidthChangedDescr))]
4572[SRCategory(nameof(SR.CatAction))]
4573[SRDescription(nameof(SR.DataGridView_CurrentCellChangedDescr))]
4580[SRCategory(nameof(SR.CatBehavior))]
4582[SRDescription(nameof(SR.DataGridView_CurrentCellDirtyStateChangedDescr))]
4589[SRCategory(nameof(SR.CatData))]
4590[SRDescription(nameof(SR.DataGridView_DataBindingCompleteDescr))]
4597[SRCategory(nameof(SR.CatBehavior))]
4598[SRDescription(nameof(SR.DataGridView_DataErrorDescr))]
4605[SRCategory(nameof(SR.CatData))]
4607[SRDescription(nameof(SR.DataGridView_DefaultValuesNeededDescr))]
4614[SRCategory(nameof(SR.CatAction))]
4615[SRDescription(nameof(SR.DataGridView_EditingControlShowingDescr))]
4622[SRCategory(nameof(SR.CatData))]
4623[SRDescription(nameof(SR.DataGridView_NewRowNeededDescr))]
4630[SRCategory(nameof(SR.CatPropertyChanged))]
4631[SRDescription(nameof(SR.DataGridView_RowContextMenuStripChangedDescr))]
4638[SRCategory(nameof(SR.CatData))]
4640[SRDescription(nameof(SR.DataGridView_RowContextMenuStripNeededDescr))]
4647[SRCategory(nameof(SR.CatPropertyChanged))]
4648[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleChangedDescr))]
4655[SRCategory(nameof(SR.CatData))]
4657[SRDescription(nameof(SR.DataGridView_RowDirtyStateNeededDescr))]
4664[SRCategory(nameof(SR.CatMouse))]
4665[SRDescription(nameof(SR.DataGridView_RowDividerDoubleClickDescr))]
4672[SRCategory(nameof(SR.CatAppearance))]
4673[SRDescription(nameof(SR.DataGridView_RowDividerHeightChangedDescr))]
4680[SRCategory(nameof(SR.CatFocus))]
4681[SRDescription(nameof(SR.DataGridView_RowEnterDescr))]
4688[SRCategory(nameof(SR.CatPropertyChanged))]
4689[SRDescription(nameof(SR.DataGridView_RowErrorTextChangedDescr))]
4696[SRCategory(nameof(SR.CatData))]
4698[SRDescription(nameof(SR.DataGridView_RowErrorTextNeededDescr))]
4705[SRCategory(nameof(SR.CatMouse))]
4706[SRDescription(nameof(SR.DataGridView_RowHeaderMouseClickDescr))]
4713[SRCategory(nameof(SR.CatMouse))]
4714[SRDescription(nameof(SR.DataGridView_RowHeaderMouseDoubleClickDescr))]
4721[SRCategory(nameof(SR.CatPropertyChanged))]
4722[SRDescription(nameof(SR.DataGridView_RowHeaderCellChangedDescr))]
4729[SRCategory(nameof(SR.CatPropertyChanged))]
4730[SRDescription(nameof(SR.DataGridView_RowHeightChangedDescr))]
4737[SRCategory(nameof(SR.CatData))]
4739[SRDescription(nameof(SR.DataGridView_RowHeightInfoNeededDescr))]
4756[SRCategory(nameof(SR.CatData))]
4758[SRDescription(nameof(SR.DataGridView_RowHeightInfoPushedDescr))]
4765[SRCategory(nameof(SR.CatFocus))]
4766[SRDescription(nameof(SR.DataGridView_RowLeaveDescr))]
4773[SRCategory(nameof(SR.CatPropertyChanged))]
4774[SRDescription(nameof(SR.DataGridView_RowMinimumHeightChangedDescr))]
4781[SRCategory(nameof(SR.CatDisplay))]
4782[SRDescription(nameof(SR.DataGridView_RowPostPaintDescr))]
4799[SRCategory(nameof(SR.CatDisplay))]
4800[SRDescription(nameof(SR.DataGridView_RowPrePaintDescr))]
4817[SRCategory(nameof(SR.CatAction))]
4818[SRDescription(nameof(SR.DataGridView_RowsAddedDescr))]
4825[SRCategory(nameof(SR.CatAction))]
4826[SRDescription(nameof(SR.DataGridView_RowsRemovedDescr))]
4833[SRCategory(nameof(SR.CatBehavior))]
4834[SRDescription(nameof(SR.DataGridView_RowStateChangedDescr))]
4841[SRCategory(nameof(SR.CatBehavior))]
4843[SRDescription(nameof(SR.DataGridView_RowUnsharedDescr))]
4850[SRCategory(nameof(SR.CatFocus))]
4851[SRDescription(nameof(SR.DataGridView_RowValidatedDescr))]
4858[SRCategory(nameof(SR.CatFocus))]
4859[SRDescription(nameof(SR.DataGridView_RowValidatingDescr))]
4866[SRCategory(nameof(SR.CatAction))]
4867[SRDescription(nameof(SR.DataGridView_ScrollDescr))]
4874[SRCategory(nameof(SR.CatAction))]
4875[SRDescription(nameof(SR.DataGridView_SelectionChangedDescr))]
4882[SRCategory(nameof(SR.CatData))]
4884[SRDescription(nameof(SR.DataGridView_SortCompareDescr))]
4891[SRCategory(nameof(SR.CatData))]
4892[SRDescription(nameof(SR.DataGridView_SortedDescr))]
4907[SRCategory(nameof(SR.CatAction))]
4908[SRDescription(nameof(SR.DataGridView_UserAddedRowDescr))]
4915[SRCategory(nameof(SR.CatAction))]
4916[SRDescription(nameof(SR.DataGridView_UserDeletedRowDescr))]
4923[SRCategory(nameof(SR.CatAction))]
4924[SRDescription(nameof(SR.DataGridView_UserDeletingRowDescr))]
4938throw new InvalidOperationException(SR.DataGridViewBeginInit);
4969SR.DataGridView_SelectionModeReset,
4971SR.DataGridView_SelectionModeAndSortModeClash,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (100)
88SR.DataGridView_RowAddedNotification,
526throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
1695throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
1718throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeInvisibleColumnHeader);
1963throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowInvisibleRowHeader);
1986throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2132throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2364throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode"));
2370throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
2386throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
2565? throw new InvalidOperationException(SR.DataGridView_NoCurrentCell)
2572throw new InvalidOperationException(SR.DataGridView_BeginEditNotReentrant);
2653throw new InvalidCastException(SR.DataGridView_InvalidEditingControl);
2677EditingControl.AccessibleName = SR.DataGridView_AccEditingControlAccName;
4193throw new InvalidOperationException(SR.DataGridView_AColumnHasNoCellTemplate);
5025throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenColumn);
5039throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenColumn);
5164throw new InvalidOperationException(SR.DataGridView_CannotMoveNonFrozenColumn);
5183throw new InvalidOperationException(SR.DataGridView_CannotMoveFrozenColumn);
5231throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5244throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
5273throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5279throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
6844throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
7120throw new NotSupportedException(SR.DataGridView_DisabledClipboardCopy);
9763throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
10738throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10745throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString()));
10758throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10767throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10778throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10790throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10857throw new InvalidOperationException(SR.DataGridView_AtLeastOneColumnIsNull);
10862throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10868throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10876SR.DataGridViewColumn_SortModeAndSelectionModeClash,
10891throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10900throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10910throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10924throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalColumns);
11038throw new InvalidOperationException(SR.DataGridView_AtLeastOneRowIsNull);
11043throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
11048throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
11053throw new InvalidOperationException(SR.DataGridViewRowCollection_TooManyCells);
11065throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalRows);
11159?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column"));
11237throw new ArgumentException(SR.DataGridView_PreviousModesHasWrongLength);
11439throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13241throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13305throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13320throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13346throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13368throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
13418throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13494throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13521throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13528throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
13581throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14042throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14069throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14261throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14463throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14473throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14617? SR.DataGridView_ErrorMessageText_NoException
14618: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception);
14624SR.DataGridView_ErrorMessageCaption,
14632MessageBox.Show(errorText, SR.DataGridView_ErrorMessageCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
14710throw new InvalidOperationException(SR.DataGridView_CannotMakeAutoSizedColumnVisible);
14762throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14793throw new InvalidOperationException(SR.DataGridView_CurrencyManagerRowCannotBeInvisible);
14824throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14865throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
15368throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
15376SR.DataGridViewColumn_SortModeAndSelectionModeClash,
15391throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
15400throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
15425throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
16652throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17580throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17600throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17638throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17760throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17844throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18277throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18361throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18711throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18997throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
19706throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
26765throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
26771throw new InvalidOperationException(SR.DataGridView_SetCurrentCellAddressCoreNotReentrant);
27455throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27460throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27734throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
28167throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
28172throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28184throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28190throw new InvalidOperationException(SR.DataGridView_CannotUseAComparerToSortDataGridViewWhenDataBound);
28200throw new InvalidOperationException(SR.DataGridView_CannotSortDataBoundDataGridViewBoundToNonIBindingList);
28205throw new InvalidOperationException(SR.DataGridView_IBindingListNeedsToSupportSorting);
28210throw new ArgumentException(SR.DataGridView_ColumnNeedsToBeDataBoundWhenSortingDataBoundDataGridView, nameof(dataGridViewColumn));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (9)
133SR.DataGridView_WrongType,
286SR.DataGridView_WrongType,
304SR.DataGridView_WrongType,
359throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, MinBandThickness));
363throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumWidthSmallerThanOne, MinBandThickness));
415throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(ReadOnly)));
546throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Selected)));
566throw new InvalidOperationException(SR.DataGridViewBand_CannotSelect);
694throw new InvalidOperationException(SR.DataGridViewBand_NewRowCannotBeInvisible);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (18)
402throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
456throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
474throw new InvalidOperationException(SR.DataGridViewCell_CannotSetReadOnlyState);
558throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
567throw new InvalidOperationException(SR.DataGridViewCell_CannotSetSelectedState);
650[SRCategory(nameof(SR.CatData))]
653[SRDescription(nameof(SR.ControlTagDescr))]
1659exception = new FormatException(SR.DataGridViewCell_FormattedValueTypeNull);
1663exception = new FormatException(SR.DataGridViewCell_FormattedValueHasWrongType);
1685throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize));
1707throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize));
1781throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
1806throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
1874throw new InvalidOperationException(SR.DataGridView_CellNeedsDataGridViewForInheritedStyle);
2357throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedCell, "Size"));
3721throw new FormatException(SR.DataGridViewCell_FormattedValueTypeNull);
3726throw new FormatException(SR.DataGridViewCell_ValueTypeNull);
3732throw new ArgumentException(SR.DataGridViewCell_FormattedValueHasWrongType, nameof(formattedValue));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (39)
72[SRCategory(nameof(SR.CatLayout))]
74[SRDescription(nameof(SR.DataGridViewColumn_AutoSizeModeDescr))]
104throw new InvalidOperationException(SR.DataGridViewColumn_AutoSizeCriteriaCannotUseInvisibleHeaders);
112throw new InvalidOperationException(SR.DataGridViewColumn_FrozenColumnCannotAutoFill);
166[SRCategory(nameof(SR.CatBehavior))]
167[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripDescr))]
178[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameDescr))]
179[SRCategory(nameof(SR.CatData))]
197[SRCategory(nameof(SR.CatAppearance))]
198[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleDescr))]
245throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue));
252throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexNegative);
257throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexExceedsColumnCount);
279throw new ArgumentOutOfRangeException(nameof(DisplayIndex), value, SR.DataGridViewColumn_DisplayIndexTooNegative);
324[SRCategory(nameof(SR.CatLayout))]
325[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthDescr))]
332[SRCategory(nameof(SR.CatLayout))]
334[SRDescription(nameof(SR.DataGridViewColumn_FillWeightDescr))]
367[SRCategory(nameof(SR.CatLayout))]
368[SRDescription(nameof(SR.DataGridView_ColumnFrozenDescr))]
384[SRCategory(nameof(SR.CatAppearance))]
385[SRDescription(nameof(SR.DataGridView_ColumnHeaderTextDescr))]
608[SRCategory(nameof(SR.CatLayout))]
609[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthDescr))]
667[SRCategory(nameof(SR.CatBehavior))]
668[SRDescription(nameof(SR.DataGridView_ColumnReadOnlyDescr))]
681throw new InvalidOperationException(SR.DataGridView_ColumnBoundToAReadOnlyFieldMustRemainReadOnly);
688[SRCategory(nameof(SR.CatBehavior))]
689[SRDescription(nameof(SR.DataGridView_ColumnResizableDescr))]
701[SRCategory(nameof(SR.CatBehavior))]
702[SRDescription(nameof(SR.DataGridView_ColumnSortModeDescr))]
732throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, (value).ToString(), DataGridView.SelectionMode.ToString()));
759[SRCategory(nameof(SR.CatAppearance))]
760[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextDescr))]
797[SRCategory(nameof(SR.CatAppearance))]
798[SRDescription(nameof(SR.DataGridView_ColumnVisibleDescr))]
805[SRCategory(nameof(SR.CatLayout))]
807[SRDescription(nameof(SR.DataGridView_ColumnWidthDescr))]
892throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (23)
148throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
155throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
181throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
188throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
271throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
278throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
869throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
876throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
993throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView, nameof(dataGridViewColumn));
1028throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
1038throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1045throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (12)
138throw new ArgumentException(SR.BadDataSourceForComplexBinding);
323throw new ArgumentOutOfRangeException(nameof(DropDownWidth), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1));
386string.Format(SR.DataGridViewComboBoxCell_MaxDropDownItemsOutOfRange, 1, 100));
428throw new ArgumentException(SR.ComboBoxSortWithDataSource);
575throw new ArgumentException(SR.DataSourceLocksItems);
816? SR.DefaultDataGridViewComboBoxCellToolTipText
931new FormatException(SR.DataGridViewComboBoxCell_InvalidValue),
968new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue),
1003new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue),
1359throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, displayMember));
1390throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, valueMember));
2411throw new FormatException(string.Format(CultureInfo.CurrentCulture, SR.Formatter_CantConvert, value, DisplayType));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (5)
121set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "ReadOnly"));
152set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "Selected"));
236throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
241throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
367throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (40)
56[SRCategory(nameof(SR.CatBehavior))]
57[SRDescription(nameof(SR.DataGridView_RowContextMenuStripDescr))]
88[SRCategory(nameof(SR.CatAppearance))]
89[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleDescr))]
98throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DefaultCellStyle)));
112throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Displayed)));
121[SRCategory(nameof(SR.CatAppearance))]
122[SRDescription(nameof(SR.DataGridView_RowDividerHeightDescr))]
130throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DividerHeight)));
139[SRCategory(nameof(SR.CatAppearance))]
140[SRDescription(nameof(SR.DataGridView_RowErrorTextDescr))]
183throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Frozen)));
192throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Frozen)));
211[SRCategory(nameof(SR.CatAppearance))]
212[SRDescription(nameof(SR.DataGridView_RowHeightDescr))]
220throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Height)));
233throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(InheritedStyle)));
260throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(MinimumHeight)));
270[SRCategory(nameof(SR.CatBehavior))]
271[SRDescription(nameof(SR.DataGridView_RowReadOnlyDescr))]
278throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(ReadOnly)));
287[SRCategory(nameof(SR.CatBehavior))]
288[SRDescription(nameof(SR.DataGridView_RowResizableDescr))]
295throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Resizable)));
309throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Selected)));
323throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(State)));
337throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Visible)));
346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Visible)));
1103throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
1114throw new InvalidOperationException(SR.DataGridView_AColumnHasNoCellTemplate);
1185throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1211throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
1238throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
1379throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
1420throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1496throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1503throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, "paintParts"));
1689throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1780throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
1785throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (80)
179throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
184throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
196throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
201throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
279throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
284throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
289throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
302throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
307throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
312throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
325throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
330throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
335throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
340throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
345throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
388throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
393throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
398throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
403throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
464throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
469throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
495throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
535throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
540throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
568throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
573throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
720throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
725throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
738throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
789throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
800throw new InvalidOperationException(SR.DataGridViewRowCollection_CantClearRowCollectionWithWrongSource);
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1331throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange);
1359throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
1364throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1379throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1384throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1394throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1399throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1404throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
1409throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1414throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1419throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
1426throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1457throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange);
1464throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
1471throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1476throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1481throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
1486throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
1508throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1513throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
1569throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1574throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1586throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
1591throw new ArgumentOutOfRangeException(nameof(indexDestination), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1596throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
1603throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1761throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1766throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1773throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1778throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1783throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
2148throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, nameof(dataGridViewRow));
2153throw new ArgumentException(SR.DataGridView_RowMustBeUnshared, nameof(dataGridViewRow));
2165throw new ArgumentOutOfRangeException(nameof(index), SR.DataGridViewRowCollection_RowIndexOutOfRange);
2171throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotDeleteNewRow);
2176throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
2198throw new InvalidOperationException(SR.DataGridViewRowCollection_CantRemoveRowsWithWrongSource);
System\Windows\Forms\Controls\ImageList\ImageList.cs (22)
23[SRDescription(nameof(SR.DescriptionImageList))]
77[SRCategory(nameof(SR.CatAppearance))]
78[SRDescription(nameof(SR.ImageListColorDepthDescr))]
107[SRDescription(nameof(SR.ImageListHandleDescr))]
127[SRDescription(nameof(SR.ImageListHandleCreatedDescr))]
131[SRCategory(nameof(SR.CatAppearance))]
134[SRDescription(nameof(SR.ImageListImagesDescr))]
141[SRCategory(nameof(SR.CatBehavior))]
143[SRDescription(nameof(SR.ImageListSizeDescr))]
151throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(ImageSize), "Size.Empty"), nameof(value));
159throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Width", value.Width, 1, s_maxImageWidth));
164throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Height", value.Height, 1, s_maxImageHeight));
183[SRDescription(nameof(SR.ImageListImageStreamDescr))]
247[SRCategory(nameof(SR.CatData))]
250[SRDescription(nameof(SR.ControlTagDescr))]
258[SRCategory(nameof(SR.CatBehavior))]
259[SRDescription(nameof(SR.ImageListTransparentColorDescr))]
266[SRDescription(nameof(SR.ImageListOnRecreateHandleDescr))]
325throw new ArgumentException(SR.ImageListStripBadWidth, nameof(original));
330throw new ArgumentException(SR.ImageListImageTooShort, nameof(original));
354return index == -1 ? throw new InvalidOperationException(SR.ImageListAddFailed) : index;
390return index == -1 ? throw new InvalidOperationException(SR.ImageListAddFailed) : index;
System\Windows\Forms\Controls\ListView\ListView.cs (154)
30[SRDescription(nameof(SR.DescriptionListView))]
241[SRCategory(nameof(SR.CatBehavior))]
243[SRDescription(nameof(SR.ListViewActivationDescr))]
258throw new ArgumentException(SR.ListViewActivationMustBeOnWhenHotTrackingIsOn, nameof(value));
273[SRCategory(nameof(SR.CatBehavior))]
276[SRDescription(nameof(SR.ListViewAlignmentDescr))]
301[SRCategory(nameof(SR.CatBehavior))]
303[SRDescription(nameof(SR.ListViewAllowColumnReorderDescr))]
326[SRCategory(nameof(SR.CatBehavior))]
328[SRDescription(nameof(SR.ListViewAutoArrangeDescr))]
375[SRCategory(nameof(SR.CatAppearance))]
377[SRDescription(nameof(SR.ListViewBackgroundImageTiledDescr))]
414[SRCategory(nameof(SR.CatAppearance))]
417[SRDescription(nameof(SR.borderStyleDescr))]
437[SRCategory(nameof(SR.CatAppearance))]
439[SRDescription(nameof(SR.ListViewCheckBoxesDescr))]
455throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView);
500throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView);
609[SRCategory(nameof(SR.CatBehavior))]
612[SRDescription(nameof(SR.ListViewColumnsDescr))]
739_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1"))
800[SRCategory(nameof(SR.CatAppearance))]
803[SRDescription(nameof(SR.ListViewFocusedItemDescr))]
871[SRCategory(nameof(SR.CatAppearance))]
873[SRDescription(nameof(SR.ListViewFullRowSelectDescr))]
894[SRCategory(nameof(SR.CatAppearance))]
896[SRDescription(nameof(SR.ListViewGridLinesDescr))]
932[SRCategory(nameof(SR.CatBehavior))]
934[SRDescription(nameof(SR.ListViewGroupImageListDescr))]
965[SRCategory(nameof(SR.CatBehavior))]
969[SRDescription(nameof(SR.ListViewGroupsDescr))]
993[SRCategory(nameof(SR.CatBehavior))]
995[SRDescription(nameof(SR.ListViewHeaderStyleDescr))]
1028[SRCategory(nameof(SR.CatBehavior))]
1030[SRDescription(nameof(SR.ListViewHideSelectionDescr))]
1048[SRCategory(nameof(SR.CatBehavior))]
1050[SRDescription(nameof(SR.ListViewHotTrackingDescr))]
1076[SRCategory(nameof(SR.CatBehavior))]
1078[SRDescription(nameof(SR.ListViewHoverSelectDescr))]
1092throw new ArgumentException(SR.ListViewHoverMustBeOnWhenHotTrackingIsOn, nameof(value));
1111[SRDescription(nameof(SR.ListViewInsertionMarkDescr))]
1134[SRCategory(nameof(SR.CatBehavior))]
1138[SRDescription(nameof(SR.ListViewItemsDescr))]
1151[SRCategory(nameof(SR.CatBehavior))]
1153[SRDescription(nameof(SR.ListViewLabelEditDescr))]
1173[SRCategory(nameof(SR.CatBehavior))]
1176[SRDescription(nameof(SR.ListViewLabelWrapDescr))]
1196[SRCategory(nameof(SR.CatBehavior))]
1198[SRDescription(nameof(SR.ListViewLargeImageListDescr))]
1249[SRCategory(nameof(SR.CatBehavior))]
1252[SRDescription(nameof(SR.ListViewItemSorterDescr))]
1276[SRCategory(nameof(SR.CatBehavior))]
1278[SRDescription(nameof(SR.ListViewMultiSelectDescr))]
1299[SRCategory(nameof(SR.CatBehavior))]
1301[SRDescription(nameof(SR.ListViewOwnerDrawDescr))]
1324[SRCategory(nameof(SR.CatAppearance))]
1327[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1348[SRCategory(nameof(SR.CatPropertyChanged))]
1349[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1359[SRCategory(nameof(SR.CatBehavior))]
1361[SRDescription(nameof(SR.ListViewScrollableDescr))]
1396[SRCategory(nameof(SR.CatAppearance))]
1399[SRDescription(nameof(SR.ListViewSelectedItemsDescr))]
1410[SRCategory(nameof(SR.CatBehavior))]
1412[SRDescription(nameof(SR.ListViewShowGroupsDescr))]
1435[SRCategory(nameof(SR.CatBehavior))]
1437[SRDescription(nameof(SR.ListViewSmallImageListDescr))]
1476[SRCategory(nameof(SR.CatBehavior))]
1478[SRDescription(nameof(SR.ListViewShowItemToolTipsDescr))]
1495[SRCategory(nameof(SR.CatBehavior))]
1497[SRDescription(nameof(SR.ListViewSortingDescr))]
1541[SRCategory(nameof(SR.CatBehavior))]
1543[SRDescription(nameof(SR.ListViewStateImageListDescr))]
1638[SRCategory(nameof(SR.CatAppearance))]
1640[SRDescription(nameof(SR.ListViewTileSizeDescr))]
1674throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive);
1706[SRCategory(nameof(SR.CatAppearance))]
1709[SRDescription(nameof(SR.ListViewTopItemDescr))]
1716throw new InvalidOperationException(SR.ListViewGetTopItem);
1731throw new InvalidOperationException(SR.ListViewSetTopItem);
1800[SRCategory(nameof(SR.CatAppearance))]
1802[SRDescription(nameof(SR.ListViewViewDescr))]
1813throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes);
1823throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode);
1858[SRCategory(nameof(SR.CatBehavior))]
1861[SRDescription(nameof(SR.ListViewVirtualListSizeDescr))]
1872throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value));
1908[SRCategory(nameof(SR.CatBehavior))]
1911[SRDescription(nameof(SR.ListViewVirtualModeDescr))]
1927throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoItems);
1932throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoCheckedItems);
1937throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoSelectedItems);
1943throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
1952[SRCategory(nameof(SR.CatBehavior))]
1953[SRDescription(nameof(SR.ListViewAfterLabelEditDescr))]
1960[SRCategory(nameof(SR.CatBehavior))]
1961[SRDescription(nameof(SR.ListViewBeforeLabelEditDescr))]
1968[SRCategory(nameof(SR.CatAction))]
1969[SRDescription(nameof(SR.ListViewCacheVirtualItemsEventDescr))]
1976[SRCategory(nameof(SR.CatAction))]
1977[SRDescription(nameof(SR.ListViewColumnClickDescr))]
1987[SRCategory(nameof(SR.CatAction))]
1988[SRDescription(nameof(SR.ListViewGroupTaskLinkClickDescr))]
1998[SRCategory(nameof(SR.CatPropertyChanged))]
1999[SRDescription(nameof(SR.ListViewColumnReorderedDscr))]
2009[SRCategory(nameof(SR.CatPropertyChanged))]
2010[SRDescription(nameof(SR.ListViewColumnWidthChangedDscr))]
2020[SRCategory(nameof(SR.CatPropertyChanged))]
2021[SRDescription(nameof(SR.ListViewColumnWidthChangingDscr))]
2031[SRCategory(nameof(SR.CatBehavior))]
2032[SRDescription(nameof(SR.ListViewDrawColumnHeaderEventDescr))]
2042[SRCategory(nameof(SR.CatBehavior))]
2043[SRDescription(nameof(SR.ListViewDrawItemEventDescr))]
2053[SRCategory(nameof(SR.CatBehavior))]
2054[SRDescription(nameof(SR.ListViewDrawSubItemEventDescr))]
2061[SRCategory(nameof(SR.CatAction))]
2062[SRDescription(nameof(SR.ListViewItemClickDescr))]
2069[SRCategory(nameof(SR.CatBehavior))]
2070[SRDescription(nameof(SR.CheckedListBoxItemCheckDescr))]
2077[SRCategory(nameof(SR.CatBehavior))]
2078[SRDescription(nameof(SR.ListViewItemCheckedDescr))]
2085[SRCategory(nameof(SR.CatAction))]
2086[SRDescription(nameof(SR.ListViewItemDragDescr))]
2093[SRCategory(nameof(SR.CatAction))]
2094[SRDescription(nameof(SR.ListViewItemMouseHoverDescr))]
2101[SRCategory(nameof(SR.CatBehavior))]
2102[SRDescription(nameof(SR.ListViewItemSelectionChangedDescr))]
2112[SRCategory(nameof(SR.CatBehavior))]
2113[SRDescription(nameof(SR.ListViewGroupCollapsedStateChangedDescr))]
2148[SRCategory(nameof(SR.CatAction))]
2149[SRDescription(nameof(SR.ListViewRetrieveVirtualItemEventDescr))]
2156[SRCategory(nameof(SR.CatAction))]
2157[SRDescription(nameof(SR.ListViewSearchForVirtualItemDescr))]
2164[SRCategory(nameof(SR.CatBehavior))]
2165[SRDescription(nameof(SR.ListViewSelectedIndexChangedDescr))]
2172[SRCategory(nameof(SR.CatBehavior))]
2173[SRDescription(nameof(SR.ListViewVirtualItemsSelectionRangeChangedDescr))]
2266throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
3224throw new InvalidOperationException(SR.ListViewFindNearestItemWorksOnlyInIconView);
3229throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection));
3601string.Format(SR.InvalidArgument, nameof(index), index))
3678string.Format(SR.InvalidArgument, nameof(itemIndex), itemIndex))
3824throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch));
3835throw new InvalidOperationException(SR.ListViewAddColumnFailed);
4020throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items));
4047throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
4213throw new InvalidOperationException(SR.ListViewAddItemFailed);
4430? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header)
4431: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
5034throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
5280throw new InvalidOperationException(SR.ListViewColumnInfoSet);
5575throw new InvalidOperationException(SR.ListViewSortNotAllowedInVirtualListView);
6813ListViewItem lvItem = rVI.Item ?? throw new InvalidOperationException(SR.ListViewVirtualItemRequired);
6827throw new InvalidOperationException(SR.ListViewVirtualModeCantAccessSubItem);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (57)
59[SRDescription(nameof(SR.DescriptionMonthCalendar))]
165[SRDescription(nameof(SR.MonthCalendarAnnuallyBoldedDatesDescr))]
191[SRDescription(nameof(SR.MonthCalendarMonthBackColorDescr))]
264[SRCategory(nameof(SR.CatAppearance))]
266[SRDescription(nameof(SR.MonthCalendarDimensionsDescr))]
367[SRCategory(nameof(SR.CatBehavior))]
370[SRDescription(nameof(SR.MonthCalendarFirstDayOfWeekDescr))]
407[SRDescription(nameof(SR.MonthCalendarForeColorDescr))]
443[SRCategory(nameof(SR.CatBehavior))]
444[SRDescription(nameof(SR.MonthCalendarMaxDateDescr))]
467[SRCategory(nameof(SR.CatBehavior))]
469[SRDescription(nameof(SR.MonthCalendarMaxSelectionCountDescr))]
486throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
499[SRCategory(nameof(SR.CatBehavior))]
500[SRDescription(nameof(SR.MonthCalendarMinDateDescr))]
523[SRDescription(nameof(SR.MonthCalendarMonthlyBoldedDatesDescr))]
572[SRCategory(nameof(SR.CatAppearance))]
575[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
600[SRCategory(nameof(SR.CatBehavior))]
602[SRDescription(nameof(SR.MonthCalendarScrollChangeDescr))]
628[SRCategory(nameof(SR.CatBehavior))]
631[SRDescription(nameof(SR.MonthCalendarSelectionEndDescr))]
665[SRCategory(nameof(SR.CatBehavior))]
668[SRDescription(nameof(SR.MonthCalendarSelectionStartDescr))]
702[SRCategory(nameof(SR.CatBehavior))]
703[SRDescription(nameof(SR.MonthCalendarSelectionRangeDescr))]
715[SRCategory(nameof(SR.CatBehavior))]
717[SRDescription(nameof(SR.MonthCalendarShowTodayDescr))]
738[SRCategory(nameof(SR.CatBehavior))]
740[SRDescription(nameof(SR.MonthCalendarShowTodayCircleDescr))]
760[SRCategory(nameof(SR.CatBehavior))]
763[SRDescription(nameof(SR.MonthCalendarShowWeekNumbersDescr))]
787[SRCategory(nameof(SR.CatAppearance))]
790[SRDescription(nameof(SR.MonthCalendarSingleMonthSizeDescr))]
800throw new InvalidOperationException(SR.InvalidSingleMonthSize);
848[SRCategory(nameof(SR.CatBehavior))]
849[SRDescription(nameof(SR.MonthCalendarTodayDateDescr))]
892[SRCategory(nameof(SR.CatBehavior))]
895[SRDescription(nameof(SR.MonthCalendarTodayDateSetDescr))]
901[SRCategory(nameof(SR.CatAppearance))]
902[SRDescription(nameof(SR.MonthCalendarTitleBackColorDescr))]
910throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
922[SRCategory(nameof(SR.CatAppearance))]
923[SRDescription(nameof(SR.MonthCalendarTitleForeColorDescr))]
931throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
943[SRCategory(nameof(SR.CatAppearance))]
944[SRDescription(nameof(SR.MonthCalendarTrailingForeColorDescr))]
952throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
1006[SRCategory(nameof(SR.CatAction))]
1007[SRDescription(nameof(SR.MonthCalendarOnDateChangedDescr))]
1014[SRCategory(nameof(SR.CatAction))]
1015[SRDescription(nameof(SR.MonthCalendarOnDateSelectedDescr))]
1060[SRCategory(nameof(SR.CatPropertyChanged))]
1061[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1741string.Format(SR.MonthCalendarRange, minDate.ToShortDateString(), maxDate.ToShortDateString()));
1755throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
1760throw new ArgumentOutOfRangeException(nameof(y), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (77)
22[SRDescription(nameof(SR.DescriptionPropertyGrid))]
397[SRDescription(nameof(SR.PropertyGridCanShowCommandsDesc))]
403[SRCategory(nameof(SR.CatAppearance))]
404[SRDescription(nameof(SR.PropertyGridCategoryForeColorDesc))]
422[SRCategory(nameof(SR.CatAppearance))]
423[SRDescription(nameof(SR.PropertyGridCommandsBackColorDesc))]
437[SRCategory(nameof(SR.CatAppearance))]
438[SRDescription(nameof(SR.PropertyGridCommandsForeColorDesc))]
452[SRCategory(nameof(SR.CatAppearance))]
453[SRDescription(nameof(SR.PropertyGridCommandsLinkColorDesc))]
463[SRCategory(nameof(SR.CatAppearance))]
464[SRDescription(nameof(SR.PropertyGridCommandsActiveLinkColorDesc))]
474[SRCategory(nameof(SR.CatAppearance))]
475[SRDescription(nameof(SR.PropertyGridCommandsDisabledLinkColorDesc))]
485[SRCategory(nameof(SR.CatAppearance))]
486[SRDescription(nameof(SR.PropertyGridCommandsBorderColorDesc))]
505[SRCategory(nameof(SR.CatAppearance))]
507[SRDescription(nameof(SR.PropertyGridCommandsVisibleIfAvailable))]
624[SRCategory(nameof(SR.CatAppearance))]
625[SRDescription(nameof(SR.PropertyGridHelpBackColorDesc))]
636[SRCategory(nameof(SR.CatAppearance))]
637[SRDescription(nameof(SR.PropertyGridHelpForeColorDesc))]
648[SRCategory(nameof(SR.CatAppearance))]
649[SRDescription(nameof(SR.PropertyGridHelpBorderColorDesc))]
660[SRCategory(nameof(SR.CatAppearance))]
663[SRDescription(nameof(SR.PropertyGridHelpVisibleDesc))]
696[SRCategory(nameof(SR.CatAppearance))]
697[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusBackColorDesc))]
715[SRCategory(nameof(SR.CatAppearance))]
716[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusForeColorDesc))]
734[SRCategory(nameof(SR.CatAppearance))]
735[SRDescription(nameof(SR.PropertyGridDisabledItemForeColorDesc))]
750[SRCategory(nameof(SR.CatAppearance))]
751[SRDescription(nameof(SR.PropertyGridCategorySplitterColorDesc))]
770[SRCategory(nameof(SR.CatAppearance))]
771[SRDescription(nameof(SR.PropertyGridCanShowVisualStyleGlyphsDesc))]
786[SRCategory(nameof(SR.CatAppearance))]
787[SRDescription(nameof(SR.PropertyGridLineColorDesc))]
826[SRCategory(nameof(SR.CatAppearance))]
828[SRDescription(nameof(SR.PropertyGridPropertySortDesc))]
884[SRDescription(nameof(SR.PropertyGridSelectedObjectDesc))]
885[SRCategory(nameof(SR.CatBehavior))]
922throw new ArgumentException(string.Format(SR.PropertyGridSetNull, count, value.Length));
1186[SRCategory(nameof(SR.CatAppearance))]
1187[SRDescription(nameof(SR.PropertyGridLargeButtonsDesc))]
1234[SRCategory(nameof(SR.CatAppearance))]
1236[SRDescription(nameof(SR.PropertyGridToolbarVisibleDesc))]
1265[SRCategory(nameof(SR.CatAppearance))]
1266[SRDescription(nameof(SR.PropertyGridViewBackColorDesc))]
1278[SRCategory(nameof(SR.CatAppearance))]
1279[SRDescription(nameof(SR.PropertyGridViewForeColorDesc))]
1294[SRCategory(nameof(SR.CatAppearance))]
1295[SRDescription(nameof(SR.PropertyGridViewBorderColorDesc))]
1399[SRCategory(nameof(SR.CatPropertyChanged))]
1400[SRDescription(nameof(SR.PropertyGridPropertyValueChangedDescr))]
1416[SRCategory(nameof(SR.CatPropertyChanged))]
1417[SRDescription(nameof(SR.PropertyGridPropertyTabchangedDescr))]
1427[SRCategory(nameof(SR.CatPropertyChanged))]
1428[SRDescription(nameof(SR.PropertyGridPropertySortChangedDescr))]
1438[SRCategory(nameof(SR.CatPropertyChanged))]
1439[SRDescription(nameof(SR.PropertyGridSelectedGridItemChangedDescr))]
1446[SRCategory(nameof(SR.CatPropertyChanged))]
1447[SRDescription(nameof(SR.PropertyGridSelectedObjectsChangedDescr))]
1583throw new ArgumentException(SR.PropertyGridTabScope, nameof(tabScope));
1693throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName));
1698throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName));
2964string.Format(SR.PropertyGridPropertyValueSelectedFormat, changedItem.Value));
3182string error = SR.ErrorPropertyPageFailed;
3192SR.PropertyGridTitle,
3425throw new ArgumentException(SR.PropertyGridTabScope);
3528throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3571throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3882SR.PBRSToolTipAlphabetic,
3887SR.PBRSToolTipCategorized,
3959SR.PBRSToolTipPropertyPages,
4200[SRCategory(nameof(SR.CatBehavior))]
4201[SRDescription(nameof(SR.UseCompatibleTextRenderingDescr))]
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
129SR.PBRSErrorTitle,
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (32)
23[SRDescription(nameof(SR.DescriptionTrackBar))]
66[SRCategory(nameof(SR.CatBehavior))]
68[SRDescription(nameof(SR.TrackBarAutoSizeDescr))]
101[SRCategory(nameof(SR.CatPropertyChanged))]
102[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
272[SRCategory(nameof(SR.CatBehavior))]
274[SRDescription(nameof(SR.TrackBarLargeChangeDescr))]
282throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value));
301[SRCategory(nameof(SR.CatBehavior))]
304[SRDescription(nameof(SR.TrackBarMaximumDescr))]
327[SRCategory(nameof(SR.CatBehavior))]
330[SRDescription(nameof(SR.TrackBarMinimumDescr))]
355[SRCategory(nameof(SR.CatAppearance))]
358[SRDescription(nameof(SR.TrackBarOrientationDescr))]
447[SRCategory(nameof(SR.CatAppearance))]
450[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
475[SRCategory(nameof(SR.CatBehavior))]
477[SRDescription(nameof(SR.TrackBarSmallChangeDescr))]
485throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
527[SRCategory(nameof(SR.CatAppearance))]
529[SRDescription(nameof(SR.TrackBarTickStyleDescr))]
557[SRCategory(nameof(SR.CatAppearance))]
559[SRDescription(nameof(SR.TrackBarTickFrequencyDescr))]
599[SRCategory(nameof(SR.CatBehavior))]
602[SRDescription(nameof(SR.TrackBarValueDescr))]
619throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
660[SRCategory(nameof(SR.CatPropertyChanged))]
661[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
668[SRCategory(nameof(SR.CatBehavior))]
669[SRDescription(nameof(SR.TrackBarOnScrollDescr))]
684[SRCategory(nameof(SR.CatAction))]
685[SRDescription(nameof(SR.valueChangedEventDescr))]
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (52)
74throw new ThreadStateException(string.Format(SR.AXMTAThread, clsidString));
946throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
989throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1217throw new ThreadStateException(SR.ThreadMustBeSTA);
1290throw new NotSupportedException(SR.WebBrowserAllowDropNotSupported);
1302throw new NotSupportedException(SR.WebBrowserBackgroundImageNotSupported);
1314throw new NotSupportedException(SR.WebBrowserBackgroundImageLayoutNotSupported);
1327throw new NotSupportedException(SR.WebBrowserCursorNotSupported);
1339throw new NotSupportedException(SR.WebBrowserEnabledNotSupported);
1351throw new NotSupportedException(SR.WebBrowserRightToLeftNotSupported);
1364set => throw new NotSupportedException(SR.WebBrowserTextNotSupported);
1375throw new NotSupportedException(SR.WebBrowserUseWaitCursorNotSupported);
1387add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged"));
1395add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter"));
1403add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave"));
1411add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged"));
1419add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick"));
1427add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick"));
1435add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged"));
1443add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged"));
1451add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged"));
1459add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged"));
1467add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged"));
1475add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged"));
1483add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged"));
1491add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged"));
1499add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged"));
1507add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click"));
1515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop"));
1523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter"));
1531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver"));
1539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave"));
1547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback"));
1556add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested"));
1564add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint"));
1572add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag"));
1580add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp"));
1588add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick"));
1596add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged"));
1604add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown"));
1612add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress"));
1620add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp"));
1628add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout"));
1636add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown"));
1644add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter"));
1652add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave"));
1660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover"));
1668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove"));
1676add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp"));
1684add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel"));
1692add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues"));
1700add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
System\Windows\Forms\Form.cs (156)
215[SRDescription(nameof(SR.FormAcceptButtonDescr))]
295[SRDescription(nameof(SR.FormActiveMDIChildDescr))]
350[SRDescription(nameof(SR.ControlAllowTransparencyDescr))]
386[SRCategory(nameof(SR.CatLayout))]
387[SRDescription(nameof(SR.FormAutoScaleDescr))]
511[SRCategory(nameof(SR.CatPropertyChanged))]
512[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
524[SRDescription(nameof(SR.ControlAutoSizeModeDescr))]
525[SRCategory(nameof(SR.CatLayout))]
651[SRCategory(nameof(SR.CatAppearance))]
654[SRDescription(nameof(SR.FormBorderStyleDescr))]
707[SRDescription(nameof(SR.FormCancelButtonDescr))]
737[SRCategory(nameof(SR.CatWindowStyle))]
739[SRDescription(nameof(SR.FormControlBoxDescr))]
887[SRCategory(nameof(SR.CatLayout))]
890[SRDescription(nameof(SR.FormDesktopBoundsDescr))]
910[SRCategory(nameof(SR.CatLayout))]
913[SRDescription(nameof(SR.FormDesktopLocationDescr))]
933[SRCategory(nameof(SR.CatBehavior))]
936[SRDescription(nameof(SR.FormDialogResultDescr))]
957[SRCategory(nameof(SR.CatWindowStyle))]
959[SRDescription(nameof(SR.FormHelpButtonDescr))]
984[SRCategory(nameof(SR.CatBehavior))]
985[SRDescription(nameof(SR.FormHelpButtonClickedDescr))]
997[SRCategory(nameof(SR.CatWindowStyle))]
998[SRDescription(nameof(SR.FormIconDescr))]
1062[SRCategory(nameof(SR.CatWindowStyle))]
1065[SRDescription(nameof(SR.FormIsMDIChildDescr))]
1081[SRCategory(nameof(SR.CatWindowStyle))]
1083[SRDescription(nameof(SR.FormIsMDIContainerDescr))]
1133[SRDescription(nameof(SR.FormKeyPreviewDescr))]
1168[SRCategory(nameof(SR.CatPropertyChanged))]
1169[SRDescription(nameof(SR.FormOnMaximizedBoundsChangedDescr))]
1179[SRCategory(nameof(SR.CatLayout))]
1181[SRDescription(nameof(SR.FormMaximumSizeDescr))]
1243[SRCategory(nameof(SR.CatPropertyChanged))]
1244[SRDescription(nameof(SR.FormOnMaximumSizeChangedDescr))]
1251[SRCategory(nameof(SR.CatWindowStyle))]
1253[SRDescription(nameof(SR.FormMenuStripDescr))]
1293[SRCategory(nameof(SR.CatLayout))]
1295[SRDescription(nameof(SR.FormMinimumSizeDescr))]
1374[SRCategory(nameof(SR.CatPropertyChanged))]
1375[SRDescription(nameof(SR.FormOnMinimumSizeChangedDescr))]
1386[SRCategory(nameof(SR.CatWindowStyle))]
1388[SRDescription(nameof(SR.FormMaximizeBoxDescr))]
1403[SRCategory(nameof(SR.CatWindowStyle))]
1406[SRDescription(nameof(SR.FormMDIChildrenDescr))]
1421[SRCategory(nameof(SR.CatWindowStyle))]
1423[SRDescription(nameof(SR.FormMdiChildrenMinimizedAnchorBottomDescr))]
1437[SRCategory(nameof(SR.CatWindowStyle))]
1440[SRDescription(nameof(SR.FormMDIParentDescr))]
1460throw new ArgumentException(SR.AddDifferentThreads, nameof(value));
1477throw new ArgumentException(SR.FormMDIParentAndChild, nameof(value));
1482throw new ArgumentException(SR.MDIParentNotContainer, nameof(value));
1534[SRCategory(nameof(SR.CatWindowStyle))]
1536[SRDescription(nameof(SR.FormMinimizeBoxDescr))]
1550[SRCategory(nameof(SR.CatWindowStyle))]
1553[SRDescription(nameof(SR.FormModalDescr))]
1560[SRCategory(nameof(SR.CatWindowStyle))]
1562[SRDescription(nameof(SR.FormOpacityDescr))]
1609[SRCategory(nameof(SR.CatWindowStyle))]
1612[SRDescription(nameof(SR.FormOwnedFormsDescr))]
1618[SRCategory(nameof(SR.CatWindowStyle))]
1621[SRDescription(nameof(SR.FormOwnerDescr))]
1635throw new ArgumentException(SR.NonTopLevelCantHaveOwner, nameof(value));
1685[SRCategory(nameof(SR.CatAppearance))]
1688[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1754[SRCategory(nameof(SR.CatWindowStyle))]
1755[SRDescription(nameof(SR.FormScreenCaptureModeDescr))]
1768throw new InvalidOperationException(SR.FormScreenCaptureModeRequiresTopLevel);
1807[SRCategory(nameof(SR.CatWindowStyle))]
1808[SRDescription(nameof(SR.FormShowInTaskbarDescr))]
1832[SRCategory(nameof(SR.CatWindowStyle))]
1833[SRDescription(nameof(SR.FormShowIconDescr))]
1914[SRCategory(nameof(SR.CatWindowStyle))]
1916[SRDescription(nameof(SR.FormSizeGripStyleDescr))]
1943[SRCategory(nameof(SR.CatLayout))]
1945[SRDescription(nameof(SR.FormStartPositionDescr))]
1980[SRCategory(nameof(SR.CatBehavior))]
1985[SRDescription(nameof(SR.ControlTabStopDescr))]
2044throw new ArgumentException(SR.MDIContainerMustBeTopLevel, nameof(value));
2056[SRCategory(nameof(SR.CatWindowStyle))]
2057[SRDescription(nameof(SR.FormTopMostDescr))]
2079[SRCategory(nameof(SR.CatWindowStyle))]
2080[SRDescription(nameof(SR.FormTransparencyKeyDescr))]
2259[SRCategory(nameof(SR.CatWindowStyle))]
2260[SRDescription(nameof(SR.FormCornerPreferenceDescr))]
2347[SRCategory(nameof(SR.CatWindowStyle))]
2348[SRDescription(nameof(SR.FormBorderColorDescr))]
2407[SRCategory(nameof(SR.CatWindowStyle))]
2408[SRDescription(nameof(SR.FormCaptionBackColorDescr))]
2468[SRCategory(nameof(SR.CatWindowStyle))]
2469[SRDescription(nameof(SR.FormCaptionTextColorDescr))]
2535[SRCategory(nameof(SR.CatLayout))]
2537[SRDescription(nameof(SR.FormWindowStateDescr))]
2607[SRCategory(nameof(SR.CatFocus))]
2608[SRDescription(nameof(SR.FormOnActivateDescr))]
2618[SRCategory(nameof(SR.CatBehavior))]
2619[SRDescription(nameof(SR.FormOnClosingDescr))]
2636[SRCategory(nameof(SR.CatBehavior))]
2637[SRDescription(nameof(SR.FormOnClosedDescr))]
2654[SRCategory(nameof(SR.CatFocus))]
2655[SRDescription(nameof(SR.FormOnDeactivateDescr))]
2665[SRCategory(nameof(SR.CatBehavior))]
2666[SRDescription(nameof(SR.FormOnFormClosingDescr))]
2676[SRCategory(nameof(SR.CatAppearance))]
2677[SRDescription(nameof(SR.FormBorderColorChangedDescr))]
2687[SRCategory(nameof(SR.CatAppearance))]
2688[SRDescription(nameof(SR.FormCaptionBackColorChangedDescr))]
2698[SRCategory(nameof(SR.CatAppearance))]
2699[SRDescription(nameof(SR.FormCaptionTextColorChangedDescr))]
2709[SRCategory(nameof(SR.CatAppearance))]
2710[SRDescription(nameof(SR.FormCornerPreferenceChangedDescr))]
2720[SRCategory(nameof(SR.CatBehavior))]
2721[SRDescription(nameof(SR.FormOnFormClosedDescr))]
2731[SRCategory(nameof(SR.CatBehavior))]
2732[SRDescription(nameof(SR.FormOnLoadDescr))]
2743[SRCategory(nameof(SR.CatLayout))]
2744[SRDescription(nameof(SR.FormOnMDIChildActivateDescr))]
2754[SRCategory(nameof(SR.CatBehavior))]
2755[SRDescription(nameof(SR.FormOnMenuCompleteDescr))]
2766[SRCategory(nameof(SR.CatBehavior))]
2767[SRDescription(nameof(SR.FormOnMenuStartDescr))]
2778[SRCategory(nameof(SR.CatBehavior))]
2779[SRDescription(nameof(SR.FormOnInputLangChangeDescr))]
2790[SRCategory(nameof(SR.CatBehavior))]
2791[SRDescription(nameof(SR.FormOnInputLangChangeRequestDescr))]
2798[SRCategory(nameof(SR.CatPropertyChanged))]
2799[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
2809[SRCategory(nameof(SR.CatBehavior))]
2810[SRDescription(nameof(SR.FormOnShownDescr))]
3245throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close"));
4548[SRCategory(nameof(SR.CatLayout))]
4549[SRDescription(nameof(SR.FormOnDpiChangedDescr))]
5035[SRCategory(nameof(SR.CatAction))]
5036[SRDescription(nameof(SR.FormOnResizeBeginDescr))]
5046[SRCategory(nameof(SR.CatAction))]
5047[SRDescription(nameof(SR.FormOnResizeEndDescr))]
5105throw new InvalidOperationException(SR.TooManyResumeUpdateMenuHandles);
5445throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)));
5450throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show)));
5455throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show)));
5460throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show)));
5465throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5491throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner));
5605throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5619?? throw new InvalidOperationException(SR.FormOrTaskDialog_NoSyncContextForShowAsync);
5666throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5671throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog)));
5676throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog)));
5681throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog)));
5686throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog)));
5691throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5745throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5905throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5919?? throw new InvalidOperationException(SR.FormOrTaskDialog_NoSyncContextForShowAsync);
System\Windows\Forms\Input\KeysConverter.cs (15)
40AddLocalizedKey(nameof(SR.toStringEnter), Keys.Return);
44AddLocalizedKey(nameof(SR.toStringEnd), Keys.End);
45AddLocalizedKey(nameof(SR.toStringControl), Keys.Control);
48AddLocalizedKey(nameof(SR.toStringAlt), Keys.Alt);
56AddLocalizedKey(nameof(SR.toStringPageDown), Keys.Next);
57AddLocalizedKey(nameof(SR.toStringInsert), Keys.Insert);
58AddLocalizedKey(nameof(SR.toStringHome), Keys.Home);
59AddLocalizedKey(nameof(SR.toStringDelete), Keys.Delete);
60AddLocalizedKey(nameof(SR.toStringShift), Keys.Shift);
61AddLocalizedKey(nameof(SR.toStringPageUp), Keys.Prior);
62AddLocalizedKey(nameof(SR.toStringBack), Keys.Back);
63AddLocalizedKey(nameof(SR.toStringNone), Keys.None);
90string key = SR.ResourceManager.GetString(resourceName, cultureInfo) ??
91throw new InvalidOperationException(string.Format(SR.ResourceValueNotFound, resourceName));
185throw new FormatException(SR.KeysConverterInvalidKeyCombination);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (48)
22[SRDescription(nameof(SR.DescriptionSplitContainer))]
115[SRCategory(nameof(SR.CatLayout))]
118[SRDescription(nameof(SR.FormAutoScrollDescr))]
164[SRCategory(nameof(SR.CatLayout))]
168[SRDescription(nameof(SR.FormAutoScrollPositionDescr))]
215[SRDescription(nameof(SR.ContainerControlBindingContextDescr))]
234[SRCategory(nameof(SR.CatAppearance))]
236[SRDescription(nameof(SR.SplitterBorderStyleDescr))]
337[SRCategory(nameof(SR.CatLayout))]
338[SRDescription(nameof(SR.SplitContainerFixedPanelDescr))]
379[SRCategory(nameof(SR.CatLayout))]
382[SRDescription(nameof(SR.SplitContainerIsSplitterFixedDescr))]
414[SRCategory(nameof(SR.CatBehavior))]
417[SRDescription(nameof(SR.SplitContainerOrientationDescr))]
475[SRCategory(nameof(SR.CatAppearance))]
476[SRDescription(nameof(SR.SplitContainerPanel1Descr))]
520[SRCategory(nameof(SR.CatLayout))]
522[SRDescription(nameof(SR.SplitContainerPanel1CollapsedDescr))]
546[SRCategory(nameof(SR.CatLayout))]
548[SRDescription(nameof(SR.SplitContainerPanel2CollapsedDescr))]
572[SRCategory(nameof(SR.CatLayout))]
575[SRDescription(nameof(SR.SplitContainerPanel1MinSizeDescr))]
596[SRCategory(nameof(SR.CatAppearance))]
597[SRDescription(nameof(SR.SplitContainerPanel2Descr))]
605[SRCategory(nameof(SR.CatLayout))]
608[SRDescription(nameof(SR.SplitContainerPanel2MinSizeDescr))]
629[SRCategory(nameof(SR.CatLayout))]
632[SRDescription(nameof(SR.SplitContainerSplitterDistanceDescr))]
664throw new InvalidOperationException(SR.SplitterDistanceNotAllowed);
685throw new InvalidOperationException(SR.SplitterDistanceNotAllowed);
738[SRCategory(nameof(SR.CatLayout))]
741[SRDescription(nameof(SR.SplitContainerSplitterIncrementDescr))]
759[SRCategory(nameof(SR.CatLayout))]
760[SRDescription(nameof(SR.SplitContainerSplitterRectangleDescr))]
776[SRCategory(nameof(SR.CatLayout))]
777[SRDescription(nameof(SR.SplitContainerSplitterWidthDescr))]
815[SRCategory(nameof(SR.CatBehavior))]
818[SRDescription(nameof(SR.ControlTabStopDescr))]
892[SRCategory(nameof(SR.CatBehavior))]
893[SRDescription(nameof(SR.SplitterSplitterMovingDescr))]
900[SRCategory(nameof(SR.CatBehavior))]
901[SRDescription(nameof(SR.SplitterSplitterMovedDescr))]
1261throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value));
1268throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value));
1290throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value.ToString()));
1297throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value));
1319throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value));
1326throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value));
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (5)
33throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
48throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
65throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(value), typeof(TableLayoutStyle)), nameof(value));
90throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
143throw new ArgumentException(string.Format(SR.OnlyOneControl, style.GetType().Name), nameof(style));