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);
379string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message);
386string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
392throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e);
404throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx);
440throw new ArgumentException(SR.InvalidResXFileReaderWriterTypes);
609throw 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)
500[SRDescription(nameof(SR.ControlAccessibilityObjectDescr))]
544[SRCategory(nameof(SR.CatAccessibility))]
548[SRDescription(nameof(SR.ControlAccessibleDefaultActionDescr))]
558[SRCategory(nameof(SR.CatAccessibility))]
561[SRDescription(nameof(SR.ControlAccessibleDescriptionDescr))]
571[SRCategory(nameof(SR.CatAccessibility))]
574[SRDescription(nameof(SR.ControlAccessibleNameDescr))]
584[SRCategory(nameof(SR.CatAccessibility))]
586[SRDescription(nameof(SR.ControlAccessibleRoleDescr))]
601[SRCategory(nameof(SR.CatBehavior))]
603[SRDescription(nameof(SR.ControlAllowDropDescr))]
661[SRCategory(nameof(SR.CatLayout))]
664[SRDescription(nameof(SR.ControlAnchorDescr))]
672[SRCategory(nameof(SR.CatLayout))]
676[SRDescription(nameof(SR.ControlAutoSizeDescr))]
708[SRCategory(nameof(SR.CatPropertyChanged))]
709[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
803[SRCategory(nameof(SR.CatData))]
842[SRCategory(nameof(SR.CatAppearance))]
844[SRDescription(nameof(SR.ControlBackColorDescr))]
885throw new ArgumentException(SR.TransparentBackColorNotAllowed);
897[SRCategory(nameof(SR.CatPropertyChanged))]
898[SRDescription(nameof(SR.ControlOnBackColorChangedDescr))]
908[SRCategory(nameof(SR.CatAppearance))]
911[SRDescription(nameof(SR.ControlBackgroundImageDescr))]
927[SRCategory(nameof(SR.CatPropertyChanged))]
928[SRDescription(nameof(SR.ControlOnBackgroundImageChangedDescr))]
938[SRCategory(nameof(SR.CatAppearance))]
941[SRDescription(nameof(SR.ControlBackgroundImageLayoutDescr))]
971[SRCategory(nameof(SR.CatPropertyChanged))]
972[SRDescription(nameof(SR.ControlOnBackgroundImageLayoutChangedDescr))]
1047[SRDescription(nameof(SR.ControlBindingContextDescr))]
1054[SRCategory(nameof(SR.CatPropertyChanged))]
1055[SRDescription(nameof(SR.ControlOnBindingContextChangedDescr))]
1068[SRDescription(nameof(SR.ControlBottomDescr))]
1069[SRCategory(nameof(SR.CatLayout))]
1079[SRDescription(nameof(SR.ControlBoundsDescr))]
1080[SRCategory(nameof(SR.CatLayout))]
1096[SRCategory(nameof(SR.CatFocus))]
1097[SRDescription(nameof(SR.ControlCanFocusDescr))]
1114[SRCategory(nameof(SR.CatFocus))]
1115[SRDescription(nameof(SR.ControlCanSelectDescr))]
1124[SRCategory(nameof(SR.CatFocus))]
1125[SRDescription(nameof(SR.ControlCaptureDescr))]
1150[SRCategory(nameof(SR.CatFocus))]
1152[SRDescription(nameof(SR.ControlCausesValidationDescr))]
1166[SRCategory(nameof(SR.CatPropertyChanged))]
1167[SRDescription(nameof(SR.ControlOnCausesValidationChangedDescr))]
1225[SRDescription(nameof(SR.ControlCheckForIllegalCrossThreadCalls))]
1235[SRCategory(nameof(SR.CatLayout))]
1236[SRDescription(nameof(SR.ControlClientRectangleDescr))]
1242[SRCategory(nameof(SR.CatLayout))]
1246[SRDescription(nameof(SR.ControlClientSizeDescr))]
1256[SRCategory(nameof(SR.CatPropertyChanged))]
1257[SRDescription(nameof(SR.ControlOnClientSizeChangedDescr))]
1270[SRDescription(nameof(SR.ControlCompanyNameDescr))]
1280[SRDescription(nameof(SR.ControlContainsFocusDescr))]
1300[SRCategory(nameof(SR.CatBehavior))]
1302[SRDescription(nameof(SR.ControlContextMenuDescr))]
1329[SRCategory(nameof(SR.CatPropertyChanged))]
1330[SRDescription(nameof(SR.ControlContextMenuStripChangedDescr))]
1342[SRDescription(nameof(SR.ControlControlsDescr))]
1351[SRDescription(nameof(SR.ControlCreatedDescr))]
1374throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32));
1529[SRCategory(nameof(SR.CatAppearance))]
1530[SRDescription(nameof(SR.ControlCursorDescr))]
1582[SRCategory(nameof(SR.CatPropertyChanged))]
1583[SRDescription(nameof(SR.ControlOnCursorChangedDescr))]
1594[SRCategory(nameof(SR.CatData))]
1595[SRDescription(nameof(SR.ControlBindingsDescr))]
1604throw new NotSupportedException(SR.BindingNotSupported);
1721[SRDescription(nameof(SR.ControlDisplayRectangleDescr))]
1732[SRDescription(nameof(SR.ControlDisposedDescr))]
1754[SRDescription(nameof(SR.ControlDisposingDescr))]
1763[SRCategory(nameof(SR.CatLayout))]
1767[SRDescription(nameof(SR.ControlDockDescr))]
1782[SRCategory(nameof(SR.CatPropertyChanged))]
1783[SRDescription(nameof(SR.ControlOnDockChangedDescr))]
1793[SRCategory(nameof(SR.CatBehavior))]
1794[SRDescription(nameof(SR.ControlDoubleBufferedDescr))]
1819[SRCategory(nameof(SR.CatBehavior))]
1822[SRDescription(nameof(SR.ControlEnabledDescr))]
1850[SRCategory(nameof(SR.CatPropertyChanged))]
1851[SRDescription(nameof(SR.ControlOnEnabledChangedDescr))]
1864[SRDescription(nameof(SR.ControlFocusedDescr))]
1872[SRCategory(nameof(SR.CatAppearance))]
1876[SRDescription(nameof(SR.ControlFontDescr))]
1974[SRCategory(nameof(SR.CatPropertyChanged))]
1975[SRDescription(nameof(SR.ControlOnFontChangedDescr))]
2068[SRCategory(nameof(SR.CatAppearance))]
2070[SRDescription(nameof(SR.ControlForeColorDescr))]
2113[SRCategory(nameof(SR.CatPropertyChanged))]
2114[SRDescription(nameof(SR.ControlOnForeColorChangedDescr))]
2186[SRDescription(nameof(SR.ControlHandleDescr))]
2193throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name));
2217[SRDescription(nameof(SR.ControlHasChildrenDescr))]
2223[SRCategory(nameof(SR.CatLayout))]
2227[SRDescription(nameof(SR.ControlHeightDescr))]
2287[SRDescription(nameof(SR.ControlHandleCreatedDescr))]
2361[SRDescription(nameof(SR.ControlInvokeRequiredDescr))]
2393[SRCategory(nameof(SR.CatBehavior))]
2397[SRDescription(nameof(SR.ControlIsAccessibleDescr))]
2438[SRCategory(nameof(SR.CatLayout))]
2442[SRDescription(nameof(SR.IsMirroredDescr))]
2475[SRCategory(nameof(SR.CatLayout))]
2479[SRDescription(nameof(SR.ControlLeftDescr))]
2489[SRCategory(nameof(SR.CatLayout))]
2491[SRDescription(nameof(SR.ControlLocationDescr))]
2498[SRCategory(nameof(SR.CatPropertyChanged))]
2499[SRDescription(nameof(SR.ControlOnLocationChangedDescr))]
2506[SRDescription(nameof(SR.ControlMarginDescr))]
2507[SRCategory(nameof(SR.CatLayout))]
2529[SRCategory(nameof(SR.CatLayout))]
2530[SRDescription(nameof(SR.ControlOnMarginChangedDescr))]
2537[SRCategory(nameof(SR.CatLayout))]
2539[SRDescription(nameof(SR.ControlMaximumSizeDescr))]
2560[SRCategory(nameof(SR.CatLayout))]
2562[SRDescription(nameof(SR.ControlMinimumSizeDescr))]
2683[SRCategory(nameof(SR.CatBehavior))]
2686[SRDescription(nameof(SR.ControlParentDescr))]
2720[SRDescription(nameof(SR.ControlProductNameDescr))]
2729[SRDescription(nameof(SR.ControlProductVersionDescr))]
2745[SRCategory(nameof(SR.CatBehavior))]
2749[SRDescription(nameof(SR.ControlRecreatingHandleDescr))]
2782[SRCategory(nameof(SR.CatLayout))]
2786[SRDescription(nameof(SR.ControlRegionDescr))]
2833[SRCategory(nameof(SR.CatPropertyChanged))]
2834[SRDescription(nameof(SR.ControlRegionChangedDescr))]
2899[SRDescription(nameof(SR.ControlResizeRedrawDescr))]
2909[SRCategory(nameof(SR.CatLayout))]
2913[SRDescription(nameof(SR.ControlRightDescr))]
2921[SRCategory(nameof(SR.CatAppearance))]
2924[SRDescription(nameof(SR.ControlRightToLeftDescr))]
2961[SRCategory(nameof(SR.CatPropertyChanged))]
2962[SRDescription(nameof(SR.ControlOnRightToLeftChangedDescr))]
3081[SRCategory(nameof(SR.CatLayout))]
3083[SRDescription(nameof(SR.ControlSizeDescr))]
3090[SRCategory(nameof(SR.CatPropertyChanged))]
3091[SRDescription(nameof(SR.ControlOnSizeChangedDescr))]
3101[SRCategory(nameof(SR.CatBehavior))]
3104[SRDescription(nameof(SR.ControlTabIndexDescr))]
3120[SRCategory(nameof(SR.CatPropertyChanged))]
3121[SRDescription(nameof(SR.ControlOnTabIndexChangedDescr))]
3132[SRCategory(nameof(SR.CatBehavior))]
3135[SRDescription(nameof(SR.ControlTabStopDescr))]
3167[SRCategory(nameof(SR.CatPropertyChanged))]
3168[SRDescription(nameof(SR.ControlOnTabStopChangedDescr))]
3175[SRCategory(nameof(SR.CatData))]
3178[SRDescription(nameof(SR.ControlTagDescr))]
3190[SRCategory(nameof(SR.CatAppearance))]
3194[SRDescription(nameof(SR.ControlTextDescr))]
3230[SRCategory(nameof(SR.CatPropertyChanged))]
3231[SRDescription(nameof(SR.ControlOnTextChangedDescr))]
3241[SRCategory(nameof(SR.CatLayout))]
3245[SRDescription(nameof(SR.ControlTopDescr))]
3257[SRCategory(nameof(SR.CatBehavior))]
3261[SRDescription(nameof(SR.ControlTopLevelControlDescr))]
3422[SRCategory(nameof(SR.CatAppearance))]
3423[SRDescription(nameof(SR.ControlUseWaitCursorDescr))]
3506[SRCategory(nameof(SR.CatBehavior))]
3508[SRDescription(nameof(SR.ControlVisibleDescr))]
3527[SRCategory(nameof(SR.CatPropertyChanged))]
3528[SRDescription(nameof(SR.ControlOnVisibleChangedDescr))]
3574throw new InvalidAsynchronousStateException(SR.ThreadNoLongerValid);
3598[SRCategory(nameof(SR.CatLayout))]
3602[SRDescription(nameof(SR.ControlWidthDescr))]
3630[SRCategory(nameof(SR.CatBehavior))]
3634[SRDescription(nameof(SR.ControlWindowTargetDescr))]
3681[SRCategory(nameof(SR.CatAction))]
3682[SRDescription(nameof(SR.ControlOnClickDescr))]
3692[SRCategory(nameof(SR.CatBehavior))]
3695[SRDescription(nameof(SR.ControlOnControlAddedDescr))]
3705[SRCategory(nameof(SR.CatBehavior))]
3708[SRDescription(nameof(SR.ControlOnControlRemovedDescr))]
3718[SRCategory(nameof(SR.CatData))]
3721[SRDescription(nameof(SR.ControlDataContextChangedDescr))]
3728[SRCategory(nameof(SR.CatDragDrop))]
3729[SRDescription(nameof(SR.ControlOnDragDropDescr))]
3736[SRCategory(nameof(SR.CatDragDrop))]
3737[SRDescription(nameof(SR.ControlOnDragEnterDescr))]
3744[SRCategory(nameof(SR.CatDragDrop))]
3745[SRDescription(nameof(SR.ControlOnDragOverDescr))]
3752[SRCategory(nameof(SR.CatDragDrop))]
3753[SRDescription(nameof(SR.ControlOnDragLeaveDescr))]
3760[SRCategory(nameof(SR.CatDragDrop))]
3761[SRDescription(nameof(SR.ControlOnGiveFeedbackDescr))]
3771[SRCategory(nameof(SR.CatPrivate))]
3774[SRDescription(nameof(SR.ControlOnCreateHandleDescr))]
3784[SRCategory(nameof(SR.CatPrivate))]
3787[SRDescription(nameof(SR.ControlOnDestroyHandleDescr))]
3794[SRCategory(nameof(SR.CatBehavior))]
3795[SRDescription(nameof(SR.ControlOnHelpDescr))]
3802[SRCategory(nameof(SR.CatAppearance))]
3805[SRDescription(nameof(SR.ControlOnInvalidateDescr))]
3818[SRDescription(nameof(SR.ControlPaddingDescr))]
3819[SRCategory(nameof(SR.CatLayout))]
3848[SRCategory(nameof(SR.CatLayout))]
3849[SRDescription(nameof(SR.ControlOnPaddingChangedDescr))]
3856[SRCategory(nameof(SR.CatAppearance))]
3857[SRDescription(nameof(SR.ControlOnPaintDescr))]
3864[SRCategory(nameof(SR.CatDragDrop))]
3865[SRDescription(nameof(SR.ControlOnQueryContinueDragDescr))]
3872[SRCategory(nameof(SR.CatBehavior))]
3873[SRDescription(nameof(SR.ControlOnQueryAccessibilityHelpDescr))]
3883[SRCategory(nameof(SR.CatAction))]
3884[SRDescription(nameof(SR.ControlOnDoubleClickDescr))]
3894[SRCategory(nameof(SR.CatFocus))]
3895[SRDescription(nameof(SR.ControlOnEnterDescr))]
3905[SRCategory(nameof(SR.CatFocus))]
3906[SRDescription(nameof(SR.ControlOnGotFocusDescr))]
3918[SRCategory(nameof(SR.CatKey))]
3919[SRDescription(nameof(SR.ControlOnKeyDownDescr))]
3929[SRCategory(nameof(SR.CatKey))]
3930[SRDescription(nameof(SR.ControlOnKeyPressDescr))]
3940[SRCategory(nameof(SR.CatKey))]
3941[SRDescription(nameof(SR.ControlOnKeyUpDescr))]
3948[SRCategory(nameof(SR.CatLayout))]
3949[SRDescription(nameof(SR.ControlOnLayoutDescr))]
3959[SRCategory(nameof(SR.CatFocus))]
3960[SRDescription(nameof(SR.ControlOnLeaveDescr))]
3970[SRCategory(nameof(SR.CatFocus))]
3971[SRDescription(nameof(SR.ControlOnLostFocusDescr))]
3983[SRCategory(nameof(SR.CatAction))]
3984[SRDescription(nameof(SR.ControlOnMouseClickDescr))]
3994[SRCategory(nameof(SR.CatAction))]
3995[SRDescription(nameof(SR.ControlOnMouseDoubleClickDescr))]
4005[SRCategory(nameof(SR.CatAction))]
4006[SRDescription(nameof(SR.ControlOnMouseCaptureChangedDescr))]
4017[SRCategory(nameof(SR.CatMouse))]
4018[SRDescription(nameof(SR.ControlOnMouseDownDescr))]
4028[SRCategory(nameof(SR.CatMouse))]
4029[SRDescription(nameof(SR.ControlOnMouseEnterDescr))]
4039[SRCategory(nameof(SR.CatMouse))]
4040[SRDescription(nameof(SR.ControlOnMouseLeaveDescr))]
4052[SRCategory(nameof(SR.CatLayout))]
4053[SRDescription(nameof(SR.ControlOnDpiChangedBeforeParentDescr))]
4065[SRCategory(nameof(SR.CatLayout))]
4066[SRDescription(nameof(SR.ControlOnDpiChangedAfterParentDescr))]
4076[SRCategory(nameof(SR.CatMouse))]
4077[SRDescription(nameof(SR.ControlOnMouseHoverDescr))]
4087[SRCategory(nameof(SR.CatMouse))]
4088[SRDescription(nameof(SR.ControlOnMouseMoveDescr))]
4098[SRCategory(nameof(SR.CatMouse))]
4099[SRDescription(nameof(SR.ControlOnMouseUpDescr))]
4109[SRCategory(nameof(SR.CatMouse))]
4110[SRDescription(nameof(SR.ControlOnMouseWheelDescr))]
4122[SRCategory(nameof(SR.CatLayout))]
4123[SRDescription(nameof(SR.ControlOnMoveDescr))]
4133[SRCategory(nameof(SR.CatKey))]
4134[SRDescription(nameof(SR.PreviewKeyDownDescr))]
4144[SRCategory(nameof(SR.CatLayout))]
4145[SRDescription(nameof(SR.ControlOnResizeDescr))]
4153[SRCategory(nameof(SR.CatBehavior))]
4154[SRDescription(nameof(SR.ControlOnChangeUICuesDescr))]
4161[SRCategory(nameof(SR.CatBehavior))]
4162[SRDescription(nameof(SR.ControlOnStyleChangedDescr))]
4169[SRCategory(nameof(SR.CatBehavior))]
4170[SRDescription(nameof(SR.ControlOnSystemColorsChangedDescr))]
4180[SRCategory(nameof(SR.CatFocus))]
4181[SRDescription(nameof(SR.ControlOnValidatingDescr))]
4191[SRCategory(nameof(SR.CatFocus))]
4192[SRDescription(nameof(SR.ControlOnValidatedDescr))]
4309[SRCategory(nameof(SR.CatPropertyChanged))]
4310[SRDescription(nameof(SR.ControlOnParentChangedDescr))]
4436throw new ArgumentException(SR.CircularOwner);
4449throw new ArgumentException(SR.CircularOwner);
4788throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose"));
4890throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
5032throw new ArgumentException(SR.ControlBadAsyncResult, nameof(asyncResult));
5672string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl));
5675string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent));
5682SR.ControlsCollectionShouldNotBeEmptyInGetNextControl,
6295throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly);
6479throw new InvalidOperationException(SR.ErrorNoMarshalingThread);
6730throw new NotSupportedException(SR.BindingNotSupported);
7070throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9342throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9552throw new ThreadStateException(SR.ThreadMustBeSTA);
9578throw new InvalidOperationException(SR.DragDropRegFailed, e);
10294throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10310throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10364throw new InvalidOperationException(SR.TopLevelNotAllowedIfActiveX);
10378throw new ArgumentException(SR.TopLevelParentedControl, nameof(value));
11343throw new InvalidOperationException(SR.RichControlLresult, e);
12719throw 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"));
1503[SRCategory(nameof(SR.CatPropertyChanged))]
1504[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleChangedDescr))]
1511[SRCategory(nameof(SR.CatAppearance))]
1512[SRDescription(nameof(SR.DataGridView_ColumnHeadersDefaultCellStyleDescr))]
1564[SRCategory(nameof(SR.CatPropertyChanged))]
1565[SRDescription(nameof(SR.DataGridViewColumnHeadersDefaultCellStyleChangedDescr))]
1572[SRCategory(nameof(SR.CatAppearance))]
1574[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightDescr))]
1594[SRCategory(nameof(SR.CatPropertyChanged))]
1595[SRDescription(nameof(SR.DataGridViewColumnHeadersHeightChangedDescr))]
1611[SRCategory(nameof(SR.CatBehavior))]
1612[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeDescr))]
1629[SRCategory(nameof(SR.CatPropertyChanged))]
1630[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeChangedDescr))]
1641[SRCategory(nameof(SR.CatAppearance))]
1643[SRDescription(nameof(SR.DataGridViewColumnHeadersVisibleDescr))]
1659throw new InvalidOperationException(SR.DataGridView_ColumnHeadersCannotBeInvisible);
1735throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1742throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
1747throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
1752throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1768throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1882[SRCategory(nameof(SR.CatData))]
1884[SRDescription(nameof(SR.DataGridViewDataMemberDescr))]
1901[SRCategory(nameof(SR.CatPropertyChanged))]
1902[SRDescription(nameof(SR.DataGridViewDataMemberChangedDescr))]
1910[SRCategory(nameof(SR.CatData))]
1913[SRDescription(nameof(SR.DataGridViewDataSourceDescr))]
1958[SRCategory(nameof(SR.CatPropertyChanged))]
1959[SRDescription(nameof(SR.DataGridViewDataSourceChangedDescr))]
1966[SRCategory(nameof(SR.CatAppearance))]
1967[SRDescription(nameof(SR.DataGridView_DefaultCellStyleDescr))]
2078[SRCategory(nameof(SR.CatPropertyChanged))]
2079[SRDescription(nameof(SR.DataGridViewDefaultCellStyleChangedDescr))]
2149[SRCategory(nameof(SR.CatBehavior))]
2151[SRDescription(nameof(SR.DataGridView_EditModeDescr))]
2168[SRCategory(nameof(SR.CatPropertyChanged))]
2169[SRDescription(nameof(SR.DataGridView_EditModeChangedDescr))]
2242AccessibleName = SR.DataGridView_AccEditingPanelAccName
2263[SRCategory(nameof(SR.CatAppearance))]
2265[SRDescription(nameof(SR.DataGridView_EnableHeadersVisualStylesDescr))]
2301throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
2306throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeAHeaderOrSharedCell);
2316throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeInvisible);
2457throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeInvisible);
2462throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeFrozen);
2473throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedColumns);
2480throw new InvalidOperationException(SR.DataGridView_FrozenColumnsPreventFirstDisplayedScrollingColumn);
2537throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeInvisible);
2542throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeFrozen);
2553throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedRows);
2560throw new InvalidOperationException(SR.DataGridView_FrozenRowsPreventFirstDisplayedScrollingRow);
2641[SRCategory(nameof(SR.CatAppearance))]
2642[SRDescription(nameof(SR.DataGridViewGridColorDescr))]
2649throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor)));
2651throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor)));
2661[SRCategory(nameof(SR.CatPropertyChanged))]
2662[SRDescription(nameof(SR.DataGridViewOnGridColorChangedDescr))]
2992[SRCategory(nameof(SR.CatBehavior))]
2994[SRDescription(nameof(SR.DataGridView_MultiSelectDescr))]
3009[SRCategory(nameof(SR.CatPropertyChanged))]
3010[SRDescription(nameof(SR.DataGridViewOnMultiSelectChangedDescr))]
3059[SRCategory(nameof(SR.CatBehavior))]
3060[SRDescription(nameof(SR.DataGridView_ReadOnlyDescr))]
3086throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
3133[SRCategory(nameof(SR.CatPropertyChanged))]
3134[SRDescription(nameof(SR.DataGridViewOnReadOnlyChangedDescr))]
3151throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3185throw new InvalidOperationException(SR.DataGridView_CannotSetRowCountOnDataBoundDataGridView);
3231[SRCategory(nameof(SR.CatAppearance))]
3232[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleDescr))]
3255throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle"));
3290[SRCategory(nameof(SR.CatPropertyChanged))]
3291[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleChangedDescr))]
3298[SRCategory(nameof(SR.CatAppearance))]
3299[SRDescription(nameof(SR.DataGridView_RowHeadersDefaultCellStyleDescr))]
3329[SRCategory(nameof(SR.CatPropertyChanged))]
3330[SRDescription(nameof(SR.DataGridViewRowHeadersDefaultCellStyleChangedDescr))]
3341[SRCategory(nameof(SR.CatAppearance))]
3343[SRDescription(nameof(SR.DataGridViewRowHeadersVisibleDescr))]
3354throw new InvalidOperationException(SR.DataGridView_RowHeadersCannotBeInvisible);
3378[SRCategory(nameof(SR.CatLayout))]
3380[SRDescription(nameof(SR.DataGridView_RowHeadersWidthDescr))]
3432[SRCategory(nameof(SR.CatPropertyChanged))]
3433[SRDescription(nameof(SR.DataGridViewRowHeadersWidthChangedDescr))]
3449[SRCategory(nameof(SR.CatBehavior))]
3450[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeDescr))]
3472[SRCategory(nameof(SR.CatPropertyChanged))]
3473[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeChangedDescr))]
3491[SRCategory(nameof(SR.CatAppearance))]
3492[SRDescription(nameof(SR.DataGridView_RowsDefaultCellStyleDescr))]
3522[SRCategory(nameof(SR.CatPropertyChanged))]
3523[SRDescription(nameof(SR.DataGridViewRowsDefaultCellStyleChangedDescr))]
3530[SRCategory(nameof(SR.CatAppearance))]
3532[SRDescription(nameof(SR.DataGridView_RowTemplateDescr))]
3550throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
3580[SRCategory(nameof(SR.CatLayout))]
3581[SRDescription(nameof(SR.DataGridView_ScrollBarsDescr))]
3603throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3740[SRCategory(nameof(SR.CatBehavior))]
3742[SRDescription(nameof(SR.DataGridView_SelectionModeDescr))]
3760throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString()));
3772[SRCategory(nameof(SR.CatAppearance))]
3773[SRDescription(nameof(SR.DataGridView_ShowCellErrorsDescr))]
3825[SRCategory(nameof(SR.CatAppearance))]
3826[SRDescription(nameof(SR.DataGridView_ShowCellToolTipsDescr))]
3877[SRCategory(nameof(SR.CatAppearance))]
3878[SRDescription(nameof(SR.DataGridView_ShowEditingIconDescr))]
3913[SRCategory(nameof(SR.CatAppearance))]
3914[SRDescription(nameof(SR.DataGridView_ShowRowErrorsDescr))]
3972[SRCategory(nameof(SR.CatBehavior))]
3975[SRDescription(nameof(SR.DataGridView_StandardTabDescr))]
4136[SRCategory(nameof(SR.CatBehavior))]
4139[SRDescription(nameof(SR.DataGridViewVirtualModeDescr))]
4159[SRCategory(nameof(SR.CatPropertyChanged))]
4160[SRDescription(nameof(SR.DataGridViewAutoSizeColumnModeChangedDescr))]
4167[SRCategory(nameof(SR.CatAction))]
4168[SRDescription(nameof(SR.DataGridView_CancelRowEditDescr))]
4175[SRCategory(nameof(SR.CatData))]
4176[SRDescription(nameof(SR.DataGridView_CellBeginEditDescr))]
4183[SRCategory(nameof(SR.CatMouse))]
4184[SRDescription(nameof(SR.DataGridView_CellClickDescr))]
4191[SRCategory(nameof(SR.CatMouse))]
4192[SRDescription(nameof(SR.DataGridView_CellContentClick))]
4199[SRCategory(nameof(SR.CatMouse))]
4200[SRDescription(nameof(SR.DataGridView_CellContentDoubleClick))]
4207[SRCategory(nameof(SR.CatAction))]
4208[SRDescription(nameof(SR.DataGridView_CellContextMenuStripChanged))]
4216[SRCategory(nameof(SR.CatBehavior))]
4217[SRDescription(nameof(SR.DataGridView_CellContextMenuStripNeeded))]
4225[SRCategory(nameof(SR.CatMouse))]
4226[SRDescription(nameof(SR.DataGridView_CellDoubleClickDescr))]
4233[SRCategory(nameof(SR.CatData))]
4234[SRDescription(nameof(SR.DataGridView_CellEndEditDescr))]
4241[SRCategory(nameof(SR.CatFocus))]
4242[SRDescription(nameof(SR.DataGridView_CellEnterDescr))]
4249[SRCategory(nameof(SR.CatPropertyChanged))]
4250[SRDescription(nameof(SR.DataGridView_CellErrorTextChangedDescr))]
4257[SRCategory(nameof(SR.CatData))]
4259[SRDescription(nameof(SR.DataGridView_CellErrorTextNeededDescr))]
4266[SRCategory(nameof(SR.CatDisplay))]
4267[SRDescription(nameof(SR.DataGridView_CellFormattingDescr))]
4274[SRCategory(nameof(SR.CatFocus))]
4275[SRDescription(nameof(SR.DataGridView_CellLeaveDescr))]
4282[SRCategory(nameof(SR.CatMouse))]
4283[SRDescription(nameof(SR.DataGridView_CellMouseClickDescr))]
4290[SRCategory(nameof(SR.CatMouse))]
4291[SRDescription(nameof(SR.DataGridView_CellMouseDoubleClickDescr))]
4298[SRCategory(nameof(SR.CatMouse))]
4299[SRDescription(nameof(SR.DataGridView_CellMouseDownDescr))]
4306[SRCategory(nameof(SR.CatMouse))]
4307[SRDescription(nameof(SR.DataGridView_CellMouseEnterDescr))]
4314[SRCategory(nameof(SR.CatMouse))]
4315[SRDescription(nameof(SR.DataGridView_CellMouseLeaveDescr))]
4322[SRCategory(nameof(SR.CatMouse))]
4323[SRDescription(nameof(SR.DataGridView_CellMouseMoveDescr))]
4330[SRCategory(nameof(SR.CatMouse))]
4331[SRDescription(nameof(SR.DataGridView_CellMouseUpDescr))]
4338[SRCategory(nameof(SR.CatDisplay))]
4339[SRDescription(nameof(SR.DataGridView_CellPaintingDescr))]
4346[SRCategory(nameof(SR.CatDisplay))]
4347[SRDescription(nameof(SR.DataGridView_CellParsingDescr))]
4354[SRCategory(nameof(SR.CatBehavior))]
4355[SRDescription(nameof(SR.DataGridView_CellStateChangedDescr))]
4362[SRCategory(nameof(SR.CatPropertyChanged))]
4363[SRDescription(nameof(SR.DataGridView_CellStyleChangedDescr))]
4370[SRCategory(nameof(SR.CatPropertyChanged))]
4371[SRDescription(nameof(SR.DataGridView_CellStyleContentChangedDescr))]
4378[SRCategory(nameof(SR.CatPropertyChanged))]
4379[SRDescription(nameof(SR.DataGridView_CellToolTipTextChangedDescr))]
4386[SRCategory(nameof(SR.CatBehavior))]
4387[SRDescription(nameof(SR.DataGridView_CellToolTipTextNeededDescr))]
4395[SRCategory(nameof(SR.CatFocus))]
4396[SRDescription(nameof(SR.DataGridView_CellValidatedDescr))]
4403[SRCategory(nameof(SR.CatFocus))]
4404[SRDescription(nameof(SR.DataGridView_CellValidatingDescr))]
4411[SRCategory(nameof(SR.CatAction))]
4412[SRDescription(nameof(SR.DataGridView_CellValueChangedDescr))]
4419[SRCategory(nameof(SR.CatData))]
4421[SRDescription(nameof(SR.DataGridView_CellValueNeededDescr))]
4428[SRCategory(nameof(SR.CatData))]
4430[SRDescription(nameof(SR.DataGridView_CellValuePushedDescr))]
4437[SRCategory(nameof(SR.CatAction))]
4438[SRDescription(nameof(SR.DataGridView_ColumnAddedDescr))]
4445[SRCategory(nameof(SR.CatPropertyChanged))]
4446[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripChangedDescr))]
4453[SRCategory(nameof(SR.CatPropertyChanged))]
4454[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameChangedDescr))]
4461[SRCategory(nameof(SR.CatPropertyChanged))]
4462[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleChangedDescr))]
4469[SRCategory(nameof(SR.CatPropertyChanged))]
4470[SRDescription(nameof(SR.DataGridView_ColumnDisplayIndexChangedDescr))]
4477[SRCategory(nameof(SR.CatMouse))]
4478[SRDescription(nameof(SR.DataGridView_ColumnDividerDoubleClickDescr))]
4485[SRCategory(nameof(SR.CatPropertyChanged))]
4486[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthChangedDescr))]
4493[SRCategory(nameof(SR.CatMouse))]
4494[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseClickDescr))]
4501[SRCategory(nameof(SR.CatMouse))]
4502[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseDoubleClickDescr))]
4509[SRCategory(nameof(SR.CatPropertyChanged))]
4510[SRDescription(nameof(SR.DataGridView_ColumnHeaderCellChangedDescr))]
4517[SRCategory(nameof(SR.CatPropertyChanged))]
4518[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthChangedDescr))]
4525[SRCategory(nameof(SR.CatPropertyChanged))]
4526[SRDescription(nameof(SR.DataGridView_ColumnNameChangedDescr))]
4533[SRCategory(nameof(SR.CatAction))]
4534[SRDescription(nameof(SR.DataGridView_ColumnRemovedDescr))]
4541[SRCategory(nameof(SR.CatBehavior))]
4542[SRDescription(nameof(SR.DataGridViewColumnSortModeChangedDescr))]
4549[SRCategory(nameof(SR.CatBehavior))]
4550[SRDescription(nameof(SR.DataGridView_ColumnStateChangedDescr))]
4557[SRCategory(nameof(SR.CatPropertyChanged))]
4558[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextChangedDescr))]
4565[SRCategory(nameof(SR.CatAction))]
4566[SRDescription(nameof(SR.DataGridView_ColumnWidthChangedDescr))]
4573[SRCategory(nameof(SR.CatAction))]
4574[SRDescription(nameof(SR.DataGridView_CurrentCellChangedDescr))]
4581[SRCategory(nameof(SR.CatBehavior))]
4583[SRDescription(nameof(SR.DataGridView_CurrentCellDirtyStateChangedDescr))]
4590[SRCategory(nameof(SR.CatData))]
4591[SRDescription(nameof(SR.DataGridView_DataBindingCompleteDescr))]
4598[SRCategory(nameof(SR.CatBehavior))]
4599[SRDescription(nameof(SR.DataGridView_DataErrorDescr))]
4606[SRCategory(nameof(SR.CatData))]
4608[SRDescription(nameof(SR.DataGridView_DefaultValuesNeededDescr))]
4615[SRCategory(nameof(SR.CatAction))]
4616[SRDescription(nameof(SR.DataGridView_EditingControlShowingDescr))]
4623[SRCategory(nameof(SR.CatData))]
4624[SRDescription(nameof(SR.DataGridView_NewRowNeededDescr))]
4631[SRCategory(nameof(SR.CatPropertyChanged))]
4632[SRDescription(nameof(SR.DataGridView_RowContextMenuStripChangedDescr))]
4639[SRCategory(nameof(SR.CatData))]
4641[SRDescription(nameof(SR.DataGridView_RowContextMenuStripNeededDescr))]
4648[SRCategory(nameof(SR.CatPropertyChanged))]
4649[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleChangedDescr))]
4656[SRCategory(nameof(SR.CatData))]
4658[SRDescription(nameof(SR.DataGridView_RowDirtyStateNeededDescr))]
4665[SRCategory(nameof(SR.CatMouse))]
4666[SRDescription(nameof(SR.DataGridView_RowDividerDoubleClickDescr))]
4673[SRCategory(nameof(SR.CatAppearance))]
4674[SRDescription(nameof(SR.DataGridView_RowDividerHeightChangedDescr))]
4681[SRCategory(nameof(SR.CatFocus))]
4682[SRDescription(nameof(SR.DataGridView_RowEnterDescr))]
4689[SRCategory(nameof(SR.CatPropertyChanged))]
4690[SRDescription(nameof(SR.DataGridView_RowErrorTextChangedDescr))]
4697[SRCategory(nameof(SR.CatData))]
4699[SRDescription(nameof(SR.DataGridView_RowErrorTextNeededDescr))]
4706[SRCategory(nameof(SR.CatMouse))]
4707[SRDescription(nameof(SR.DataGridView_RowHeaderMouseClickDescr))]
4714[SRCategory(nameof(SR.CatMouse))]
4715[SRDescription(nameof(SR.DataGridView_RowHeaderMouseDoubleClickDescr))]
4722[SRCategory(nameof(SR.CatPropertyChanged))]
4723[SRDescription(nameof(SR.DataGridView_RowHeaderCellChangedDescr))]
4730[SRCategory(nameof(SR.CatPropertyChanged))]
4731[SRDescription(nameof(SR.DataGridView_RowHeightChangedDescr))]
4738[SRCategory(nameof(SR.CatData))]
4740[SRDescription(nameof(SR.DataGridView_RowHeightInfoNeededDescr))]
4757[SRCategory(nameof(SR.CatData))]
4759[SRDescription(nameof(SR.DataGridView_RowHeightInfoPushedDescr))]
4766[SRCategory(nameof(SR.CatFocus))]
4767[SRDescription(nameof(SR.DataGridView_RowLeaveDescr))]
4774[SRCategory(nameof(SR.CatPropertyChanged))]
4775[SRDescription(nameof(SR.DataGridView_RowMinimumHeightChangedDescr))]
4782[SRCategory(nameof(SR.CatDisplay))]
4783[SRDescription(nameof(SR.DataGridView_RowPostPaintDescr))]
4800[SRCategory(nameof(SR.CatDisplay))]
4801[SRDescription(nameof(SR.DataGridView_RowPrePaintDescr))]
4818[SRCategory(nameof(SR.CatAction))]
4819[SRDescription(nameof(SR.DataGridView_RowsAddedDescr))]
4826[SRCategory(nameof(SR.CatAction))]
4827[SRDescription(nameof(SR.DataGridView_RowsRemovedDescr))]
4834[SRCategory(nameof(SR.CatBehavior))]
4835[SRDescription(nameof(SR.DataGridView_RowStateChangedDescr))]
4842[SRCategory(nameof(SR.CatBehavior))]
4844[SRDescription(nameof(SR.DataGridView_RowUnsharedDescr))]
4851[SRCategory(nameof(SR.CatFocus))]
4852[SRDescription(nameof(SR.DataGridView_RowValidatedDescr))]
4859[SRCategory(nameof(SR.CatFocus))]
4860[SRDescription(nameof(SR.DataGridView_RowValidatingDescr))]
4867[SRCategory(nameof(SR.CatAction))]
4868[SRDescription(nameof(SR.DataGridView_ScrollDescr))]
4875[SRCategory(nameof(SR.CatAction))]
4876[SRDescription(nameof(SR.DataGridView_SelectionChangedDescr))]
4883[SRCategory(nameof(SR.CatData))]
4885[SRDescription(nameof(SR.DataGridView_SortCompareDescr))]
4892[SRCategory(nameof(SR.CatData))]
4893[SRDescription(nameof(SR.DataGridView_SortedDescr))]
4908[SRCategory(nameof(SR.CatAction))]
4909[SRDescription(nameof(SR.DataGridView_UserAddedRowDescr))]
4916[SRCategory(nameof(SR.CatAction))]
4917[SRDescription(nameof(SR.DataGridView_UserDeletedRowDescr))]
4924[SRCategory(nameof(SR.CatAction))]
4925[SRDescription(nameof(SR.DataGridView_UserDeletingRowDescr))]
4939throw new InvalidOperationException(SR.DataGridViewBeginInit);
4970SR.DataGridView_SelectionModeReset,
4972SR.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);
2680EditingControl.AccessibleName = SR.DataGridView_AccEditingControlAccName;
4196throw new InvalidOperationException(SR.DataGridView_AColumnHasNoCellTemplate);
5028throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenColumn);
5042throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenColumn);
5167throw new InvalidOperationException(SR.DataGridView_CannotMoveNonFrozenColumn);
5186throw new InvalidOperationException(SR.DataGridView_CannotMoveFrozenColumn);
5234throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5247throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
5276throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5282throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
6847throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
7123throw new NotSupportedException(SR.DataGridView_DisabledClipboardCopy);
9766throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
10741throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10748throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString()));
10761throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10770throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10781throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10793throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10860throw new InvalidOperationException(SR.DataGridView_AtLeastOneColumnIsNull);
10865throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10871throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10879SR.DataGridViewColumn_SortModeAndSelectionModeClash,
10894throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10903throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10913throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10927throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalColumns);
11041throw new InvalidOperationException(SR.DataGridView_AtLeastOneRowIsNull);
11046throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
11051throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
11056throw new InvalidOperationException(SR.DataGridViewRowCollection_TooManyCells);
11068throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalRows);
11162?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column"));
11240throw new ArgumentException(SR.DataGridView_PreviousModesHasWrongLength);
11442throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13244throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13308throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13323throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13349throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13371throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
13421throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13497throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13524throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13531throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
13584throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14045throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14072throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14264throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14466throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14476throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14620? SR.DataGridView_ErrorMessageText_NoException
14621: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception);
14627SR.DataGridView_ErrorMessageCaption,
14635MessageBox.Show(errorText, SR.DataGridView_ErrorMessageCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
14713throw new InvalidOperationException(SR.DataGridView_CannotMakeAutoSizedColumnVisible);
14765throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14796throw new InvalidOperationException(SR.DataGridView_CurrencyManagerRowCannotBeInvisible);
14827throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14868throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
15371throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
15379SR.DataGridViewColumn_SortModeAndSelectionModeClash,
15394throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
15403throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
15428throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
16655throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17583throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17603throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17641throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17763throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17847throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18280throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18364throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18714throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
19000throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
19709throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
26768throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
26774throw new InvalidOperationException(SR.DataGridView_SetCurrentCellAddressCoreNotReentrant);
27458throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27463throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27737throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
28170throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
28175throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28187throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28193throw new InvalidOperationException(SR.DataGridView_CannotUseAComparerToSortDataGridViewWhenDataBound);
28203throw new InvalidOperationException(SR.DataGridView_CannotSortDataBoundDataGridViewBoundToNonIBindingList);
28208throw new InvalidOperationException(SR.DataGridView_IBindingListNeedsToSupportSorting);
28213throw 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))]
741_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1"))
802[SRCategory(nameof(SR.CatAppearance))]
805[SRDescription(nameof(SR.ListViewFocusedItemDescr))]
873[SRCategory(nameof(SR.CatAppearance))]
875[SRDescription(nameof(SR.ListViewFullRowSelectDescr))]
896[SRCategory(nameof(SR.CatAppearance))]
898[SRDescription(nameof(SR.ListViewGridLinesDescr))]
934[SRCategory(nameof(SR.CatBehavior))]
936[SRDescription(nameof(SR.ListViewGroupImageListDescr))]
967[SRCategory(nameof(SR.CatBehavior))]
971[SRDescription(nameof(SR.ListViewGroupsDescr))]
995[SRCategory(nameof(SR.CatBehavior))]
997[SRDescription(nameof(SR.ListViewHeaderStyleDescr))]
1030[SRCategory(nameof(SR.CatBehavior))]
1032[SRDescription(nameof(SR.ListViewHideSelectionDescr))]
1050[SRCategory(nameof(SR.CatBehavior))]
1052[SRDescription(nameof(SR.ListViewHotTrackingDescr))]
1078[SRCategory(nameof(SR.CatBehavior))]
1080[SRDescription(nameof(SR.ListViewHoverSelectDescr))]
1094throw new ArgumentException(SR.ListViewHoverMustBeOnWhenHotTrackingIsOn, nameof(value));
1113[SRDescription(nameof(SR.ListViewInsertionMarkDescr))]
1136[SRCategory(nameof(SR.CatBehavior))]
1140[SRDescription(nameof(SR.ListViewItemsDescr))]
1153[SRCategory(nameof(SR.CatBehavior))]
1155[SRDescription(nameof(SR.ListViewLabelEditDescr))]
1175[SRCategory(nameof(SR.CatBehavior))]
1178[SRDescription(nameof(SR.ListViewLabelWrapDescr))]
1198[SRCategory(nameof(SR.CatBehavior))]
1200[SRDescription(nameof(SR.ListViewLargeImageListDescr))]
1251[SRCategory(nameof(SR.CatBehavior))]
1254[SRDescription(nameof(SR.ListViewItemSorterDescr))]
1278[SRCategory(nameof(SR.CatBehavior))]
1280[SRDescription(nameof(SR.ListViewMultiSelectDescr))]
1301[SRCategory(nameof(SR.CatBehavior))]
1303[SRDescription(nameof(SR.ListViewOwnerDrawDescr))]
1326[SRCategory(nameof(SR.CatAppearance))]
1329[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1350[SRCategory(nameof(SR.CatPropertyChanged))]
1351[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1361[SRCategory(nameof(SR.CatBehavior))]
1363[SRDescription(nameof(SR.ListViewScrollableDescr))]
1398[SRCategory(nameof(SR.CatAppearance))]
1401[SRDescription(nameof(SR.ListViewSelectedItemsDescr))]
1412[SRCategory(nameof(SR.CatBehavior))]
1414[SRDescription(nameof(SR.ListViewShowGroupsDescr))]
1437[SRCategory(nameof(SR.CatBehavior))]
1439[SRDescription(nameof(SR.ListViewSmallImageListDescr))]
1478[SRCategory(nameof(SR.CatBehavior))]
1480[SRDescription(nameof(SR.ListViewShowItemToolTipsDescr))]
1497[SRCategory(nameof(SR.CatBehavior))]
1499[SRDescription(nameof(SR.ListViewSortingDescr))]
1543[SRCategory(nameof(SR.CatBehavior))]
1545[SRDescription(nameof(SR.ListViewStateImageListDescr))]
1640[SRCategory(nameof(SR.CatAppearance))]
1642[SRDescription(nameof(SR.ListViewTileSizeDescr))]
1676throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive);
1708[SRCategory(nameof(SR.CatAppearance))]
1711[SRDescription(nameof(SR.ListViewTopItemDescr))]
1718throw new InvalidOperationException(SR.ListViewGetTopItem);
1733throw new InvalidOperationException(SR.ListViewSetTopItem);
1802[SRCategory(nameof(SR.CatAppearance))]
1804[SRDescription(nameof(SR.ListViewViewDescr))]
1815throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes);
1825throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode);
1860[SRCategory(nameof(SR.CatBehavior))]
1863[SRDescription(nameof(SR.ListViewVirtualListSizeDescr))]
1874throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value));
1910[SRCategory(nameof(SR.CatBehavior))]
1913[SRDescription(nameof(SR.ListViewVirtualModeDescr))]
1929throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoItems);
1934throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoCheckedItems);
1939throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoSelectedItems);
1945throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
1954[SRCategory(nameof(SR.CatBehavior))]
1955[SRDescription(nameof(SR.ListViewAfterLabelEditDescr))]
1962[SRCategory(nameof(SR.CatBehavior))]
1963[SRDescription(nameof(SR.ListViewBeforeLabelEditDescr))]
1970[SRCategory(nameof(SR.CatAction))]
1971[SRDescription(nameof(SR.ListViewCacheVirtualItemsEventDescr))]
1978[SRCategory(nameof(SR.CatAction))]
1979[SRDescription(nameof(SR.ListViewColumnClickDescr))]
1989[SRCategory(nameof(SR.CatAction))]
1990[SRDescription(nameof(SR.ListViewGroupTaskLinkClickDescr))]
2000[SRCategory(nameof(SR.CatPropertyChanged))]
2001[SRDescription(nameof(SR.ListViewColumnReorderedDscr))]
2011[SRCategory(nameof(SR.CatPropertyChanged))]
2012[SRDescription(nameof(SR.ListViewColumnWidthChangedDscr))]
2022[SRCategory(nameof(SR.CatPropertyChanged))]
2023[SRDescription(nameof(SR.ListViewColumnWidthChangingDscr))]
2033[SRCategory(nameof(SR.CatBehavior))]
2034[SRDescription(nameof(SR.ListViewDrawColumnHeaderEventDescr))]
2044[SRCategory(nameof(SR.CatBehavior))]
2045[SRDescription(nameof(SR.ListViewDrawItemEventDescr))]
2055[SRCategory(nameof(SR.CatBehavior))]
2056[SRDescription(nameof(SR.ListViewDrawSubItemEventDescr))]
2063[SRCategory(nameof(SR.CatAction))]
2064[SRDescription(nameof(SR.ListViewItemClickDescr))]
2071[SRCategory(nameof(SR.CatBehavior))]
2072[SRDescription(nameof(SR.CheckedListBoxItemCheckDescr))]
2079[SRCategory(nameof(SR.CatBehavior))]
2080[SRDescription(nameof(SR.ListViewItemCheckedDescr))]
2087[SRCategory(nameof(SR.CatAction))]
2088[SRDescription(nameof(SR.ListViewItemDragDescr))]
2095[SRCategory(nameof(SR.CatAction))]
2096[SRDescription(nameof(SR.ListViewItemMouseHoverDescr))]
2103[SRCategory(nameof(SR.CatBehavior))]
2104[SRDescription(nameof(SR.ListViewItemSelectionChangedDescr))]
2114[SRCategory(nameof(SR.CatBehavior))]
2115[SRDescription(nameof(SR.ListViewGroupCollapsedStateChangedDescr))]
2150[SRCategory(nameof(SR.CatAction))]
2151[SRDescription(nameof(SR.ListViewRetrieveVirtualItemEventDescr))]
2158[SRCategory(nameof(SR.CatAction))]
2159[SRDescription(nameof(SR.ListViewSearchForVirtualItemDescr))]
2166[SRCategory(nameof(SR.CatBehavior))]
2167[SRDescription(nameof(SR.ListViewSelectedIndexChangedDescr))]
2174[SRCategory(nameof(SR.CatBehavior))]
2175[SRDescription(nameof(SR.ListViewVirtualItemsSelectionRangeChangedDescr))]
2268throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
3229throw new InvalidOperationException(SR.ListViewFindNearestItemWorksOnlyInIconView);
3234throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection));
3606string.Format(SR.InvalidArgument, nameof(index), index))
3683string.Format(SR.InvalidArgument, nameof(itemIndex), itemIndex))
3829throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch));
3840throw new InvalidOperationException(SR.ListViewAddColumnFailed);
4025throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items));
4052throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
4218throw new InvalidOperationException(SR.ListViewAddItemFailed);
4435? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header)
4436: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
5043throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
5289throw new InvalidOperationException(SR.ListViewColumnInfoSet);
5584throw new InvalidOperationException(SR.ListViewSortNotAllowedInVirtualListView);
6826ListViewItem lvItem = rVI.Item ?? throw new InvalidOperationException(SR.ListViewVirtualItemRequired);
6840throw new InvalidOperationException(SR.ListViewVirtualModeCantAccessSubItem);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (57)
59[SRDescription(nameof(SR.DescriptionMonthCalendar))]
165[SRDescription(nameof(SR.MonthCalendarAnnuallyBoldedDatesDescr))]
192[SRDescription(nameof(SR.MonthCalendarMonthBackColorDescr))]
266[SRCategory(nameof(SR.CatAppearance))]
268[SRDescription(nameof(SR.MonthCalendarDimensionsDescr))]
371[SRCategory(nameof(SR.CatBehavior))]
374[SRDescription(nameof(SR.MonthCalendarFirstDayOfWeekDescr))]
412[SRDescription(nameof(SR.MonthCalendarForeColorDescr))]
449[SRCategory(nameof(SR.CatBehavior))]
450[SRDescription(nameof(SR.MonthCalendarMaxDateDescr))]
473[SRCategory(nameof(SR.CatBehavior))]
475[SRDescription(nameof(SR.MonthCalendarMaxSelectionCountDescr))]
492throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
505[SRCategory(nameof(SR.CatBehavior))]
506[SRDescription(nameof(SR.MonthCalendarMinDateDescr))]
529[SRDescription(nameof(SR.MonthCalendarMonthlyBoldedDatesDescr))]
578[SRCategory(nameof(SR.CatAppearance))]
581[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
606[SRCategory(nameof(SR.CatBehavior))]
608[SRDescription(nameof(SR.MonthCalendarScrollChangeDescr))]
634[SRCategory(nameof(SR.CatBehavior))]
637[SRDescription(nameof(SR.MonthCalendarSelectionEndDescr))]
671[SRCategory(nameof(SR.CatBehavior))]
674[SRDescription(nameof(SR.MonthCalendarSelectionStartDescr))]
708[SRCategory(nameof(SR.CatBehavior))]
709[SRDescription(nameof(SR.MonthCalendarSelectionRangeDescr))]
721[SRCategory(nameof(SR.CatBehavior))]
723[SRDescription(nameof(SR.MonthCalendarShowTodayDescr))]
744[SRCategory(nameof(SR.CatBehavior))]
746[SRDescription(nameof(SR.MonthCalendarShowTodayCircleDescr))]
766[SRCategory(nameof(SR.CatBehavior))]
769[SRDescription(nameof(SR.MonthCalendarShowWeekNumbersDescr))]
793[SRCategory(nameof(SR.CatAppearance))]
796[SRDescription(nameof(SR.MonthCalendarSingleMonthSizeDescr))]
806throw new InvalidOperationException(SR.InvalidSingleMonthSize);
854[SRCategory(nameof(SR.CatBehavior))]
855[SRDescription(nameof(SR.MonthCalendarTodayDateDescr))]
898[SRCategory(nameof(SR.CatBehavior))]
901[SRDescription(nameof(SR.MonthCalendarTodayDateSetDescr))]
907[SRCategory(nameof(SR.CatAppearance))]
908[SRDescription(nameof(SR.MonthCalendarTitleBackColorDescr))]
916throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
928[SRCategory(nameof(SR.CatAppearance))]
929[SRDescription(nameof(SR.MonthCalendarTitleForeColorDescr))]
937throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
949[SRCategory(nameof(SR.CatAppearance))]
950[SRDescription(nameof(SR.MonthCalendarTrailingForeColorDescr))]
958throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
1012[SRCategory(nameof(SR.CatAction))]
1013[SRDescription(nameof(SR.MonthCalendarOnDateChangedDescr))]
1020[SRCategory(nameof(SR.CatAction))]
1021[SRDescription(nameof(SR.MonthCalendarOnDateSelectedDescr))]
1066[SRCategory(nameof(SR.CatPropertyChanged))]
1067[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1747string.Format(SR.MonthCalendarRange, minDate.ToShortDateString(), maxDate.ToShortDateString()));
1761throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
1766throw 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))]
395[SRDescription(nameof(SR.PropertyGridCanShowCommandsDesc))]
401[SRCategory(nameof(SR.CatAppearance))]
402[SRDescription(nameof(SR.PropertyGridCategoryForeColorDesc))]
420[SRCategory(nameof(SR.CatAppearance))]
421[SRDescription(nameof(SR.PropertyGridCommandsBackColorDesc))]
435[SRCategory(nameof(SR.CatAppearance))]
436[SRDescription(nameof(SR.PropertyGridCommandsForeColorDesc))]
450[SRCategory(nameof(SR.CatAppearance))]
451[SRDescription(nameof(SR.PropertyGridCommandsLinkColorDesc))]
461[SRCategory(nameof(SR.CatAppearance))]
462[SRDescription(nameof(SR.PropertyGridCommandsActiveLinkColorDesc))]
472[SRCategory(nameof(SR.CatAppearance))]
473[SRDescription(nameof(SR.PropertyGridCommandsDisabledLinkColorDesc))]
483[SRCategory(nameof(SR.CatAppearance))]
484[SRDescription(nameof(SR.PropertyGridCommandsBorderColorDesc))]
503[SRCategory(nameof(SR.CatAppearance))]
505[SRDescription(nameof(SR.PropertyGridCommandsVisibleIfAvailable))]
622[SRCategory(nameof(SR.CatAppearance))]
623[SRDescription(nameof(SR.PropertyGridHelpBackColorDesc))]
634[SRCategory(nameof(SR.CatAppearance))]
635[SRDescription(nameof(SR.PropertyGridHelpForeColorDesc))]
646[SRCategory(nameof(SR.CatAppearance))]
647[SRDescription(nameof(SR.PropertyGridHelpBorderColorDesc))]
658[SRCategory(nameof(SR.CatAppearance))]
661[SRDescription(nameof(SR.PropertyGridHelpVisibleDesc))]
694[SRCategory(nameof(SR.CatAppearance))]
695[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusBackColorDesc))]
713[SRCategory(nameof(SR.CatAppearance))]
714[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusForeColorDesc))]
732[SRCategory(nameof(SR.CatAppearance))]
733[SRDescription(nameof(SR.PropertyGridDisabledItemForeColorDesc))]
748[SRCategory(nameof(SR.CatAppearance))]
749[SRDescription(nameof(SR.PropertyGridCategorySplitterColorDesc))]
768[SRCategory(nameof(SR.CatAppearance))]
769[SRDescription(nameof(SR.PropertyGridCanShowVisualStyleGlyphsDesc))]
784[SRCategory(nameof(SR.CatAppearance))]
785[SRDescription(nameof(SR.PropertyGridLineColorDesc))]
824[SRCategory(nameof(SR.CatAppearance))]
826[SRDescription(nameof(SR.PropertyGridPropertySortDesc))]
882[SRDescription(nameof(SR.PropertyGridSelectedObjectDesc))]
883[SRCategory(nameof(SR.CatBehavior))]
920throw new ArgumentException(string.Format(SR.PropertyGridSetNull, count, value.Length));
1184[SRCategory(nameof(SR.CatAppearance))]
1185[SRDescription(nameof(SR.PropertyGridLargeButtonsDesc))]
1232[SRCategory(nameof(SR.CatAppearance))]
1234[SRDescription(nameof(SR.PropertyGridToolbarVisibleDesc))]
1263[SRCategory(nameof(SR.CatAppearance))]
1264[SRDescription(nameof(SR.PropertyGridViewBackColorDesc))]
1276[SRCategory(nameof(SR.CatAppearance))]
1277[SRDescription(nameof(SR.PropertyGridViewForeColorDesc))]
1292[SRCategory(nameof(SR.CatAppearance))]
1293[SRDescription(nameof(SR.PropertyGridViewBorderColorDesc))]
1397[SRCategory(nameof(SR.CatPropertyChanged))]
1398[SRDescription(nameof(SR.PropertyGridPropertyValueChangedDescr))]
1414[SRCategory(nameof(SR.CatPropertyChanged))]
1415[SRDescription(nameof(SR.PropertyGridPropertyTabchangedDescr))]
1425[SRCategory(nameof(SR.CatPropertyChanged))]
1426[SRDescription(nameof(SR.PropertyGridPropertySortChangedDescr))]
1436[SRCategory(nameof(SR.CatPropertyChanged))]
1437[SRDescription(nameof(SR.PropertyGridSelectedGridItemChangedDescr))]
1444[SRCategory(nameof(SR.CatPropertyChanged))]
1445[SRDescription(nameof(SR.PropertyGridSelectedObjectsChangedDescr))]
1581throw new ArgumentException(SR.PropertyGridTabScope, nameof(tabScope));
1691throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName));
1696throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName));
2962string.Format(SR.PropertyGridPropertyValueSelectedFormat, changedItem.Value));
3180string error = SR.ErrorPropertyPageFailed;
3190SR.PropertyGridTitle,
3423throw new ArgumentException(SR.PropertyGridTabScope);
3526throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3569throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3880SR.PBRSToolTipAlphabetic,
3885SR.PBRSToolTipCategorized,
3957SR.PBRSToolTipPropertyPages,
4198[SRCategory(nameof(SR.CatBehavior))]
4199[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))]
274[SRCategory(nameof(SR.CatBehavior))]
276[SRDescription(nameof(SR.TrackBarLargeChangeDescr))]
284throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value));
303[SRCategory(nameof(SR.CatBehavior))]
306[SRDescription(nameof(SR.TrackBarMaximumDescr))]
329[SRCategory(nameof(SR.CatBehavior))]
332[SRDescription(nameof(SR.TrackBarMinimumDescr))]
357[SRCategory(nameof(SR.CatAppearance))]
360[SRDescription(nameof(SR.TrackBarOrientationDescr))]
449[SRCategory(nameof(SR.CatAppearance))]
452[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
477[SRCategory(nameof(SR.CatBehavior))]
479[SRDescription(nameof(SR.TrackBarSmallChangeDescr))]
487throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
529[SRCategory(nameof(SR.CatAppearance))]
531[SRDescription(nameof(SR.TrackBarTickStyleDescr))]
559[SRCategory(nameof(SR.CatAppearance))]
561[SRDescription(nameof(SR.TrackBarTickFrequencyDescr))]
601[SRCategory(nameof(SR.CatBehavior))]
604[SRDescription(nameof(SR.TrackBarValueDescr))]
621throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
662[SRCategory(nameof(SR.CatPropertyChanged))]
663[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
670[SRCategory(nameof(SR.CatBehavior))]
671[SRDescription(nameof(SR.TrackBarOnScrollDescr))]
686[SRCategory(nameof(SR.CatAction))]
687[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)
216[SRDescription(nameof(SR.FormAcceptButtonDescr))]
296[SRDescription(nameof(SR.FormActiveMDIChildDescr))]
351[SRDescription(nameof(SR.ControlAllowTransparencyDescr))]
387[SRCategory(nameof(SR.CatLayout))]
388[SRDescription(nameof(SR.FormAutoScaleDescr))]
512[SRCategory(nameof(SR.CatPropertyChanged))]
513[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
525[SRDescription(nameof(SR.ControlAutoSizeModeDescr))]
526[SRCategory(nameof(SR.CatLayout))]
652[SRCategory(nameof(SR.CatAppearance))]
655[SRDescription(nameof(SR.FormBorderStyleDescr))]
708[SRDescription(nameof(SR.FormCancelButtonDescr))]
738[SRCategory(nameof(SR.CatWindowStyle))]
740[SRDescription(nameof(SR.FormControlBoxDescr))]
888[SRCategory(nameof(SR.CatLayout))]
891[SRDescription(nameof(SR.FormDesktopBoundsDescr))]
911[SRCategory(nameof(SR.CatLayout))]
914[SRDescription(nameof(SR.FormDesktopLocationDescr))]
934[SRCategory(nameof(SR.CatBehavior))]
937[SRDescription(nameof(SR.FormDialogResultDescr))]
958[SRCategory(nameof(SR.CatWindowStyle))]
960[SRDescription(nameof(SR.FormHelpButtonDescr))]
985[SRCategory(nameof(SR.CatBehavior))]
986[SRDescription(nameof(SR.FormHelpButtonClickedDescr))]
998[SRCategory(nameof(SR.CatWindowStyle))]
999[SRDescription(nameof(SR.FormIconDescr))]
1066[SRCategory(nameof(SR.CatWindowStyle))]
1069[SRDescription(nameof(SR.FormIsMDIChildDescr))]
1085[SRCategory(nameof(SR.CatWindowStyle))]
1087[SRDescription(nameof(SR.FormIsMDIContainerDescr))]
1137[SRDescription(nameof(SR.FormKeyPreviewDescr))]
1172[SRCategory(nameof(SR.CatPropertyChanged))]
1173[SRDescription(nameof(SR.FormOnMaximizedBoundsChangedDescr))]
1183[SRCategory(nameof(SR.CatLayout))]
1185[SRDescription(nameof(SR.FormMaximumSizeDescr))]
1247[SRCategory(nameof(SR.CatPropertyChanged))]
1248[SRDescription(nameof(SR.FormOnMaximumSizeChangedDescr))]
1255[SRCategory(nameof(SR.CatWindowStyle))]
1257[SRDescription(nameof(SR.FormMenuStripDescr))]
1297[SRCategory(nameof(SR.CatLayout))]
1299[SRDescription(nameof(SR.FormMinimumSizeDescr))]
1378[SRCategory(nameof(SR.CatPropertyChanged))]
1379[SRDescription(nameof(SR.FormOnMinimumSizeChangedDescr))]
1390[SRCategory(nameof(SR.CatWindowStyle))]
1392[SRDescription(nameof(SR.FormMaximizeBoxDescr))]
1407[SRCategory(nameof(SR.CatWindowStyle))]
1410[SRDescription(nameof(SR.FormMDIChildrenDescr))]
1425[SRCategory(nameof(SR.CatWindowStyle))]
1427[SRDescription(nameof(SR.FormMdiChildrenMinimizedAnchorBottomDescr))]
1441[SRCategory(nameof(SR.CatWindowStyle))]
1444[SRDescription(nameof(SR.FormMDIParentDescr))]
1464throw new ArgumentException(SR.AddDifferentThreads, nameof(value));
1481throw new ArgumentException(SR.FormMDIParentAndChild, nameof(value));
1486throw new ArgumentException(SR.MDIParentNotContainer, nameof(value));
1538[SRCategory(nameof(SR.CatWindowStyle))]
1540[SRDescription(nameof(SR.FormMinimizeBoxDescr))]
1554[SRCategory(nameof(SR.CatWindowStyle))]
1557[SRDescription(nameof(SR.FormModalDescr))]
1564[SRCategory(nameof(SR.CatWindowStyle))]
1566[SRDescription(nameof(SR.FormOpacityDescr))]
1613[SRCategory(nameof(SR.CatWindowStyle))]
1616[SRDescription(nameof(SR.FormOwnedFormsDescr))]
1622[SRCategory(nameof(SR.CatWindowStyle))]
1625[SRDescription(nameof(SR.FormOwnerDescr))]
1639throw new ArgumentException(SR.NonTopLevelCantHaveOwner, nameof(value));
1689[SRCategory(nameof(SR.CatAppearance))]
1692[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1758[SRCategory(nameof(SR.CatWindowStyle))]
1759[SRDescription(nameof(SR.FormScreenCaptureModeDescr))]
1772throw new InvalidOperationException(SR.FormScreenCaptureModeRequiresTopLevel);
1808[SRCategory(nameof(SR.CatWindowStyle))]
1809[SRDescription(nameof(SR.FormShowInTaskbarDescr))]
1833[SRCategory(nameof(SR.CatWindowStyle))]
1834[SRDescription(nameof(SR.FormShowIconDescr))]
1915[SRCategory(nameof(SR.CatWindowStyle))]
1917[SRDescription(nameof(SR.FormSizeGripStyleDescr))]
1944[SRCategory(nameof(SR.CatLayout))]
1946[SRDescription(nameof(SR.FormStartPositionDescr))]
1981[SRCategory(nameof(SR.CatBehavior))]
1986[SRDescription(nameof(SR.ControlTabStopDescr))]
2045throw new ArgumentException(SR.MDIContainerMustBeTopLevel, nameof(value));
2057[SRCategory(nameof(SR.CatWindowStyle))]
2058[SRDescription(nameof(SR.FormTopMostDescr))]
2080[SRCategory(nameof(SR.CatWindowStyle))]
2081[SRDescription(nameof(SR.FormTransparencyKeyDescr))]
2260[SRCategory(nameof(SR.CatWindowStyle))]
2261[SRDescription(nameof(SR.FormCornerPreferenceDescr))]
2352[SRCategory(nameof(SR.CatWindowStyle))]
2353[SRDescription(nameof(SR.FormBorderColorDescr))]
2414[SRCategory(nameof(SR.CatWindowStyle))]
2415[SRDescription(nameof(SR.FormCaptionBackColorDescr))]
2477[SRCategory(nameof(SR.CatWindowStyle))]
2478[SRDescription(nameof(SR.FormCaptionTextColorDescr))]
2546[SRCategory(nameof(SR.CatLayout))]
2548[SRDescription(nameof(SR.FormWindowStateDescr))]
2618[SRCategory(nameof(SR.CatFocus))]
2619[SRDescription(nameof(SR.FormOnActivateDescr))]
2629[SRCategory(nameof(SR.CatBehavior))]
2630[SRDescription(nameof(SR.FormOnClosingDescr))]
2647[SRCategory(nameof(SR.CatBehavior))]
2648[SRDescription(nameof(SR.FormOnClosedDescr))]
2665[SRCategory(nameof(SR.CatFocus))]
2666[SRDescription(nameof(SR.FormOnDeactivateDescr))]
2676[SRCategory(nameof(SR.CatBehavior))]
2677[SRDescription(nameof(SR.FormOnFormClosingDescr))]
2687[SRCategory(nameof(SR.CatAppearance))]
2688[SRDescription(nameof(SR.FormBorderColorChangedDescr))]
2699[SRCategory(nameof(SR.CatAppearance))]
2700[SRDescription(nameof(SR.FormCaptionBackColorChangedDescr))]
2711[SRCategory(nameof(SR.CatAppearance))]
2712[SRDescription(nameof(SR.FormCaptionTextColorChangedDescr))]
2723[SRCategory(nameof(SR.CatAppearance))]
2724[SRDescription(nameof(SR.FormCornerPreferenceChangedDescr))]
2735[SRCategory(nameof(SR.CatBehavior))]
2736[SRDescription(nameof(SR.FormOnFormClosedDescr))]
2746[SRCategory(nameof(SR.CatBehavior))]
2747[SRDescription(nameof(SR.FormOnLoadDescr))]
2758[SRCategory(nameof(SR.CatLayout))]
2759[SRDescription(nameof(SR.FormOnMDIChildActivateDescr))]
2769[SRCategory(nameof(SR.CatBehavior))]
2770[SRDescription(nameof(SR.FormOnMenuCompleteDescr))]
2781[SRCategory(nameof(SR.CatBehavior))]
2782[SRDescription(nameof(SR.FormOnMenuStartDescr))]
2793[SRCategory(nameof(SR.CatBehavior))]
2794[SRDescription(nameof(SR.FormOnInputLangChangeDescr))]
2805[SRCategory(nameof(SR.CatBehavior))]
2806[SRDescription(nameof(SR.FormOnInputLangChangeRequestDescr))]
2813[SRCategory(nameof(SR.CatPropertyChanged))]
2814[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
2824[SRCategory(nameof(SR.CatBehavior))]
2825[SRDescription(nameof(SR.FormOnShownDescr))]
3260throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close"));
4566[SRCategory(nameof(SR.CatLayout))]
4567[SRDescription(nameof(SR.FormOnDpiChangedDescr))]
5055[SRCategory(nameof(SR.CatAction))]
5056[SRDescription(nameof(SR.FormOnResizeBeginDescr))]
5066[SRCategory(nameof(SR.CatAction))]
5067[SRDescription(nameof(SR.FormOnResizeEndDescr))]
5125throw new InvalidOperationException(SR.TooManyResumeUpdateMenuHandles);
5465throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)));
5470throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show)));
5475throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show)));
5480throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show)));
5485throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5511throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner));
5588throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5600?? throw new InvalidOperationException(SR.FormOrTaskDialog_NoSyncContextForShowAsync);
5659throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5664throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog)));
5669throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog)));
5674throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog)));
5679throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog)));
5684throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5738throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5899throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5911?? 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));