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)
425[SRDescription(nameof(SR.ControlAccessibilityObjectDescr))]
469[SRCategory(nameof(SR.CatAccessibility))]
473[SRDescription(nameof(SR.ControlAccessibleDefaultActionDescr))]
483[SRCategory(nameof(SR.CatAccessibility))]
486[SRDescription(nameof(SR.ControlAccessibleDescriptionDescr))]
496[SRCategory(nameof(SR.CatAccessibility))]
499[SRDescription(nameof(SR.ControlAccessibleNameDescr))]
509[SRCategory(nameof(SR.CatAccessibility))]
511[SRDescription(nameof(SR.ControlAccessibleRoleDescr))]
526[SRCategory(nameof(SR.CatBehavior))]
528[SRDescription(nameof(SR.ControlAllowDropDescr))]
586[SRCategory(nameof(SR.CatLayout))]
589[SRDescription(nameof(SR.ControlAnchorDescr))]
597[SRCategory(nameof(SR.CatLayout))]
601[SRDescription(nameof(SR.ControlAutoSizeDescr))]
633[SRCategory(nameof(SR.CatPropertyChanged))]
634[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
728[SRCategory(nameof(SR.CatData))]
767[SRCategory(nameof(SR.CatAppearance))]
769[SRDescription(nameof(SR.ControlBackColorDescr))]
810throw new ArgumentException(SR.TransparentBackColorNotAllowed);
822[SRCategory(nameof(SR.CatPropertyChanged))]
823[SRDescription(nameof(SR.ControlOnBackColorChangedDescr))]
833[SRCategory(nameof(SR.CatAppearance))]
836[SRDescription(nameof(SR.ControlBackgroundImageDescr))]
852[SRCategory(nameof(SR.CatPropertyChanged))]
853[SRDescription(nameof(SR.ControlOnBackgroundImageChangedDescr))]
863[SRCategory(nameof(SR.CatAppearance))]
866[SRDescription(nameof(SR.ControlBackgroundImageLayoutDescr))]
896[SRCategory(nameof(SR.CatPropertyChanged))]
897[SRDescription(nameof(SR.ControlOnBackgroundImageLayoutChangedDescr))]
972[SRDescription(nameof(SR.ControlBindingContextDescr))]
979[SRCategory(nameof(SR.CatPropertyChanged))]
980[SRDescription(nameof(SR.ControlOnBindingContextChangedDescr))]
993[SRDescription(nameof(SR.ControlBottomDescr))]
994[SRCategory(nameof(SR.CatLayout))]
1004[SRDescription(nameof(SR.ControlBoundsDescr))]
1005[SRCategory(nameof(SR.CatLayout))]
1021[SRCategory(nameof(SR.CatFocus))]
1022[SRDescription(nameof(SR.ControlCanFocusDescr))]
1039[SRCategory(nameof(SR.CatFocus))]
1040[SRDescription(nameof(SR.ControlCanSelectDescr))]
1049[SRCategory(nameof(SR.CatFocus))]
1050[SRDescription(nameof(SR.ControlCaptureDescr))]
1075[SRCategory(nameof(SR.CatFocus))]
1077[SRDescription(nameof(SR.ControlCausesValidationDescr))]
1091[SRCategory(nameof(SR.CatPropertyChanged))]
1092[SRDescription(nameof(SR.ControlOnCausesValidationChangedDescr))]
1150[SRDescription(nameof(SR.ControlCheckForIllegalCrossThreadCalls))]
1160[SRCategory(nameof(SR.CatLayout))]
1161[SRDescription(nameof(SR.ControlClientRectangleDescr))]
1167[SRCategory(nameof(SR.CatLayout))]
1171[SRDescription(nameof(SR.ControlClientSizeDescr))]
1181[SRCategory(nameof(SR.CatPropertyChanged))]
1182[SRDescription(nameof(SR.ControlOnClientSizeChangedDescr))]
1195[SRDescription(nameof(SR.ControlCompanyNameDescr))]
1205[SRDescription(nameof(SR.ControlContainsFocusDescr))]
1225[SRCategory(nameof(SR.CatBehavior))]
1227[SRDescription(nameof(SR.ControlContextMenuDescr))]
1254[SRCategory(nameof(SR.CatPropertyChanged))]
1255[SRDescription(nameof(SR.ControlContextMenuStripChangedDescr))]
1267[SRDescription(nameof(SR.ControlControlsDescr))]
1276[SRDescription(nameof(SR.ControlCreatedDescr))]
1299throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32));
1454[SRCategory(nameof(SR.CatAppearance))]
1455[SRDescription(nameof(SR.ControlCursorDescr))]
1507[SRCategory(nameof(SR.CatPropertyChanged))]
1508[SRDescription(nameof(SR.ControlOnCursorChangedDescr))]
1519[SRCategory(nameof(SR.CatData))]
1520[SRDescription(nameof(SR.ControlBindingsDescr))]
1529throw new NotSupportedException(SR.BindingNotSupported);
1646[SRDescription(nameof(SR.ControlDisplayRectangleDescr))]
1657[SRDescription(nameof(SR.ControlDisposedDescr))]
1679[SRDescription(nameof(SR.ControlDisposingDescr))]
1688[SRCategory(nameof(SR.CatLayout))]
1692[SRDescription(nameof(SR.ControlDockDescr))]
1707[SRCategory(nameof(SR.CatPropertyChanged))]
1708[SRDescription(nameof(SR.ControlOnDockChangedDescr))]
1718[SRCategory(nameof(SR.CatBehavior))]
1719[SRDescription(nameof(SR.ControlDoubleBufferedDescr))]
1744[SRCategory(nameof(SR.CatBehavior))]
1747[SRDescription(nameof(SR.ControlEnabledDescr))]
1775[SRCategory(nameof(SR.CatPropertyChanged))]
1776[SRDescription(nameof(SR.ControlOnEnabledChangedDescr))]
1789[SRDescription(nameof(SR.ControlFocusedDescr))]
1797[SRCategory(nameof(SR.CatAppearance))]
1801[SRDescription(nameof(SR.ControlFontDescr))]
1899[SRCategory(nameof(SR.CatPropertyChanged))]
1900[SRDescription(nameof(SR.ControlOnFontChangedDescr))]
1993[SRCategory(nameof(SR.CatAppearance))]
1995[SRDescription(nameof(SR.ControlForeColorDescr))]
2038[SRCategory(nameof(SR.CatPropertyChanged))]
2039[SRDescription(nameof(SR.ControlOnForeColorChangedDescr))]
2111[SRDescription(nameof(SR.ControlHandleDescr))]
2118throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name));
2142[SRDescription(nameof(SR.ControlHasChildrenDescr))]
2148[SRCategory(nameof(SR.CatLayout))]
2152[SRDescription(nameof(SR.ControlHeightDescr))]
2212[SRDescription(nameof(SR.ControlHandleCreatedDescr))]
2286[SRDescription(nameof(SR.ControlInvokeRequiredDescr))]
2318[SRCategory(nameof(SR.CatBehavior))]
2322[SRDescription(nameof(SR.ControlIsAccessibleDescr))]
2363[SRCategory(nameof(SR.CatLayout))]
2367[SRDescription(nameof(SR.IsMirroredDescr))]
2400[SRCategory(nameof(SR.CatLayout))]
2404[SRDescription(nameof(SR.ControlLeftDescr))]
2414[SRCategory(nameof(SR.CatLayout))]
2416[SRDescription(nameof(SR.ControlLocationDescr))]
2423[SRCategory(nameof(SR.CatPropertyChanged))]
2424[SRDescription(nameof(SR.ControlOnLocationChangedDescr))]
2431[SRDescription(nameof(SR.ControlMarginDescr))]
2432[SRCategory(nameof(SR.CatLayout))]
2454[SRCategory(nameof(SR.CatLayout))]
2455[SRDescription(nameof(SR.ControlOnMarginChangedDescr))]
2462[SRCategory(nameof(SR.CatLayout))]
2464[SRDescription(nameof(SR.ControlMaximumSizeDescr))]
2485[SRCategory(nameof(SR.CatLayout))]
2487[SRDescription(nameof(SR.ControlMinimumSizeDescr))]
2608[SRCategory(nameof(SR.CatBehavior))]
2611[SRDescription(nameof(SR.ControlParentDescr))]
2645[SRDescription(nameof(SR.ControlProductNameDescr))]
2654[SRDescription(nameof(SR.ControlProductVersionDescr))]
2670[SRCategory(nameof(SR.CatBehavior))]
2674[SRDescription(nameof(SR.ControlRecreatingHandleDescr))]
2707[SRCategory(nameof(SR.CatLayout))]
2711[SRDescription(nameof(SR.ControlRegionDescr))]
2758[SRCategory(nameof(SR.CatPropertyChanged))]
2759[SRDescription(nameof(SR.ControlRegionChangedDescr))]
2824[SRDescription(nameof(SR.ControlResizeRedrawDescr))]
2834[SRCategory(nameof(SR.CatLayout))]
2838[SRDescription(nameof(SR.ControlRightDescr))]
2846[SRCategory(nameof(SR.CatAppearance))]
2849[SRDescription(nameof(SR.ControlRightToLeftDescr))]
2886[SRCategory(nameof(SR.CatPropertyChanged))]
2887[SRDescription(nameof(SR.ControlOnRightToLeftChangedDescr))]
3006[SRCategory(nameof(SR.CatLayout))]
3008[SRDescription(nameof(SR.ControlSizeDescr))]
3015[SRCategory(nameof(SR.CatPropertyChanged))]
3016[SRDescription(nameof(SR.ControlOnSizeChangedDescr))]
3026[SRCategory(nameof(SR.CatBehavior))]
3029[SRDescription(nameof(SR.ControlTabIndexDescr))]
3045[SRCategory(nameof(SR.CatPropertyChanged))]
3046[SRDescription(nameof(SR.ControlOnTabIndexChangedDescr))]
3057[SRCategory(nameof(SR.CatBehavior))]
3060[SRDescription(nameof(SR.ControlTabStopDescr))]
3092[SRCategory(nameof(SR.CatPropertyChanged))]
3093[SRDescription(nameof(SR.ControlOnTabStopChangedDescr))]
3100[SRCategory(nameof(SR.CatData))]
3103[SRDescription(nameof(SR.ControlTagDescr))]
3115[SRCategory(nameof(SR.CatAppearance))]
3119[SRDescription(nameof(SR.ControlTextDescr))]
3155[SRCategory(nameof(SR.CatPropertyChanged))]
3156[SRDescription(nameof(SR.ControlOnTextChangedDescr))]
3166[SRCategory(nameof(SR.CatLayout))]
3170[SRDescription(nameof(SR.ControlTopDescr))]
3182[SRCategory(nameof(SR.CatBehavior))]
3186[SRDescription(nameof(SR.ControlTopLevelControlDescr))]
3347[SRCategory(nameof(SR.CatAppearance))]
3348[SRDescription(nameof(SR.ControlUseWaitCursorDescr))]
3431[SRCategory(nameof(SR.CatBehavior))]
3433[SRDescription(nameof(SR.ControlVisibleDescr))]
3452[SRCategory(nameof(SR.CatPropertyChanged))]
3453[SRDescription(nameof(SR.ControlOnVisibleChangedDescr))]
3499throw new InvalidAsynchronousStateException(SR.ThreadNoLongerValid);
3523[SRCategory(nameof(SR.CatLayout))]
3527[SRDescription(nameof(SR.ControlWidthDescr))]
3555[SRCategory(nameof(SR.CatBehavior))]
3559[SRDescription(nameof(SR.ControlWindowTargetDescr))]
3606[SRCategory(nameof(SR.CatAction))]
3607[SRDescription(nameof(SR.ControlOnClickDescr))]
3617[SRCategory(nameof(SR.CatBehavior))]
3620[SRDescription(nameof(SR.ControlOnControlAddedDescr))]
3630[SRCategory(nameof(SR.CatBehavior))]
3633[SRDescription(nameof(SR.ControlOnControlRemovedDescr))]
3643[SRCategory(nameof(SR.CatData))]
3646[SRDescription(nameof(SR.ControlDataContextChangedDescr))]
3653[SRCategory(nameof(SR.CatDragDrop))]
3654[SRDescription(nameof(SR.ControlOnDragDropDescr))]
3661[SRCategory(nameof(SR.CatDragDrop))]
3662[SRDescription(nameof(SR.ControlOnDragEnterDescr))]
3669[SRCategory(nameof(SR.CatDragDrop))]
3670[SRDescription(nameof(SR.ControlOnDragOverDescr))]
3677[SRCategory(nameof(SR.CatDragDrop))]
3678[SRDescription(nameof(SR.ControlOnDragLeaveDescr))]
3685[SRCategory(nameof(SR.CatDragDrop))]
3686[SRDescription(nameof(SR.ControlOnGiveFeedbackDescr))]
3696[SRCategory(nameof(SR.CatPrivate))]
3699[SRDescription(nameof(SR.ControlOnCreateHandleDescr))]
3709[SRCategory(nameof(SR.CatPrivate))]
3712[SRDescription(nameof(SR.ControlOnDestroyHandleDescr))]
3719[SRCategory(nameof(SR.CatBehavior))]
3720[SRDescription(nameof(SR.ControlOnHelpDescr))]
3727[SRCategory(nameof(SR.CatAppearance))]
3730[SRDescription(nameof(SR.ControlOnInvalidateDescr))]
3743[SRDescription(nameof(SR.ControlPaddingDescr))]
3744[SRCategory(nameof(SR.CatLayout))]
3773[SRCategory(nameof(SR.CatLayout))]
3774[SRDescription(nameof(SR.ControlOnPaddingChangedDescr))]
3781[SRCategory(nameof(SR.CatAppearance))]
3782[SRDescription(nameof(SR.ControlOnPaintDescr))]
3789[SRCategory(nameof(SR.CatDragDrop))]
3790[SRDescription(nameof(SR.ControlOnQueryContinueDragDescr))]
3797[SRCategory(nameof(SR.CatBehavior))]
3798[SRDescription(nameof(SR.ControlOnQueryAccessibilityHelpDescr))]
3808[SRCategory(nameof(SR.CatAction))]
3809[SRDescription(nameof(SR.ControlOnDoubleClickDescr))]
3819[SRCategory(nameof(SR.CatFocus))]
3820[SRDescription(nameof(SR.ControlOnEnterDescr))]
3830[SRCategory(nameof(SR.CatFocus))]
3831[SRDescription(nameof(SR.ControlOnGotFocusDescr))]
3843[SRCategory(nameof(SR.CatKey))]
3844[SRDescription(nameof(SR.ControlOnKeyDownDescr))]
3854[SRCategory(nameof(SR.CatKey))]
3855[SRDescription(nameof(SR.ControlOnKeyPressDescr))]
3865[SRCategory(nameof(SR.CatKey))]
3866[SRDescription(nameof(SR.ControlOnKeyUpDescr))]
3873[SRCategory(nameof(SR.CatLayout))]
3874[SRDescription(nameof(SR.ControlOnLayoutDescr))]
3884[SRCategory(nameof(SR.CatFocus))]
3885[SRDescription(nameof(SR.ControlOnLeaveDescr))]
3895[SRCategory(nameof(SR.CatFocus))]
3896[SRDescription(nameof(SR.ControlOnLostFocusDescr))]
3908[SRCategory(nameof(SR.CatAction))]
3909[SRDescription(nameof(SR.ControlOnMouseClickDescr))]
3919[SRCategory(nameof(SR.CatAction))]
3920[SRDescription(nameof(SR.ControlOnMouseDoubleClickDescr))]
3930[SRCategory(nameof(SR.CatAction))]
3931[SRDescription(nameof(SR.ControlOnMouseCaptureChangedDescr))]
3942[SRCategory(nameof(SR.CatMouse))]
3943[SRDescription(nameof(SR.ControlOnMouseDownDescr))]
3953[SRCategory(nameof(SR.CatMouse))]
3954[SRDescription(nameof(SR.ControlOnMouseEnterDescr))]
3964[SRCategory(nameof(SR.CatMouse))]
3965[SRDescription(nameof(SR.ControlOnMouseLeaveDescr))]
3977[SRCategory(nameof(SR.CatLayout))]
3978[SRDescription(nameof(SR.ControlOnDpiChangedBeforeParentDescr))]
3990[SRCategory(nameof(SR.CatLayout))]
3991[SRDescription(nameof(SR.ControlOnDpiChangedAfterParentDescr))]
4001[SRCategory(nameof(SR.CatMouse))]
4002[SRDescription(nameof(SR.ControlOnMouseHoverDescr))]
4012[SRCategory(nameof(SR.CatMouse))]
4013[SRDescription(nameof(SR.ControlOnMouseMoveDescr))]
4023[SRCategory(nameof(SR.CatMouse))]
4024[SRDescription(nameof(SR.ControlOnMouseUpDescr))]
4034[SRCategory(nameof(SR.CatMouse))]
4035[SRDescription(nameof(SR.ControlOnMouseWheelDescr))]
4047[SRCategory(nameof(SR.CatLayout))]
4048[SRDescription(nameof(SR.ControlOnMoveDescr))]
4058[SRCategory(nameof(SR.CatKey))]
4059[SRDescription(nameof(SR.PreviewKeyDownDescr))]
4069[SRCategory(nameof(SR.CatLayout))]
4070[SRDescription(nameof(SR.ControlOnResizeDescr))]
4078[SRCategory(nameof(SR.CatBehavior))]
4079[SRDescription(nameof(SR.ControlOnChangeUICuesDescr))]
4086[SRCategory(nameof(SR.CatBehavior))]
4087[SRDescription(nameof(SR.ControlOnStyleChangedDescr))]
4094[SRCategory(nameof(SR.CatBehavior))]
4095[SRDescription(nameof(SR.ControlOnSystemColorsChangedDescr))]
4105[SRCategory(nameof(SR.CatFocus))]
4106[SRDescription(nameof(SR.ControlOnValidatingDescr))]
4116[SRCategory(nameof(SR.CatFocus))]
4117[SRDescription(nameof(SR.ControlOnValidatedDescr))]
4234[SRCategory(nameof(SR.CatPropertyChanged))]
4235[SRDescription(nameof(SR.ControlOnParentChangedDescr))]
4361throw new ArgumentException(SR.CircularOwner);
4374throw new ArgumentException(SR.CircularOwner);
4713throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose"));
4815throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
4957throw new ArgumentException(SR.ControlBadAsyncResult, nameof(asyncResult));
5597string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl));
5600string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent));
5607SR.ControlsCollectionShouldNotBeEmptyInGetNextControl,
6220throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly);
6404throw new InvalidOperationException(SR.ErrorNoMarshalingThread);
6655throw new NotSupportedException(SR.BindingNotSupported);
6995throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9267throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
9462throw new ThreadStateException(SR.ThreadMustBeSTA);
9488throw new InvalidOperationException(SR.DragDropRegFailed, e);
10204throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10220throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10259throw new InvalidOperationException(SR.TopLevelNotAllowedIfActiveX);
10273throw new ArgumentException(SR.TopLevelParentedControl, nameof(value));
11237throw new InvalidOperationException(SR.RichControlLresult, e);
12613throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (356)
16[SRDescription(nameof(SR.DescriptionDataGridView))]
461_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName;
469_vertScrollBar.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
650[SRCategory(nameof(SR.CatBehavior))]
651[SRDescription(nameof(SR.DataGridView_AllowUserToAddRowsDescr))]
674[SRCategory(nameof(SR.CatPropertyChanged))]
675[SRDescription(nameof(SR.DataGridViewOnAllowUserToAddRowsChangedDescr))]
683[SRCategory(nameof(SR.CatBehavior))]
684[SRDescription(nameof(SR.DataGridView_AllowUserToDeleteRowsDescr))]
702[SRCategory(nameof(SR.CatPropertyChanged))]
703[SRDescription(nameof(SR.DataGridViewOnAllowUserToDeleteRowsChangedDescr))]
711[SRCategory(nameof(SR.CatBehavior))]
712[SRDescription(nameof(SR.DataGridView_AllowUserToOrderColumnsDescr))]
729[SRCategory(nameof(SR.CatPropertyChanged))]
730[SRDescription(nameof(SR.DataGridViewOnAllowUserToOrderColumnsChangedDescr))]
742[SRCategory(nameof(SR.CatBehavior))]
743[SRDescription(nameof(SR.DataGridView_AllowUserToResizeColumnsDescr))]
757[SRCategory(nameof(SR.CatPropertyChanged))]
758[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeColumnsChangedDescr))]
770[SRCategory(nameof(SR.CatBehavior))]
771[SRDescription(nameof(SR.DataGridView_AllowUserToResizeRowsDescr))]
785[SRCategory(nameof(SR.CatPropertyChanged))]
786[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeRowsChangedDescr))]
793[SRCategory(nameof(SR.CatAppearance))]
794[SRDescription(nameof(SR.DataGridView_AlternatingRowsDefaultCellStyleDescr))]
824[SRCategory(nameof(SR.CatPropertyChanged))]
825[SRDescription(nameof(SR.DataGridViewAlternatingRowsDefaultCellStyleChangedDescr))]
878[SRCategory(nameof(SR.CatLayout))]
879[SRDescription(nameof(SR.DataGridView_AutoSizeColumnsModeDescr))]
908throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeColumnsInvisibleColumnHeaders);
914throw new InvalidOperationException(SR.DataGridView_CannotAutoFillFrozenColumns);
932[SRCategory(nameof(SR.CatPropertyChanged))]
933[SRDescription(nameof(SR.DataGridViewAutoSizeColumnsModeChangedDescr))]
944[SRCategory(nameof(SR.CatLayout))]
945[SRDescription(nameof(SR.DataGridView_AutoSizeRowsModeDescr))]
968throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
980[SRCategory(nameof(SR.CatPropertyChanged))]
981[SRDescription(nameof(SR.DataGridViewAutoSizeRowsModeChangedDescr))]
1008[SRCategory(nameof(SR.CatAppearance))]
1009[SRDescription(nameof(SR.DataGridViewBackgroundColorDescr))]
1016throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor"));
1018throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor"));
1028[SRCategory(nameof(SR.CatPropertyChanged))]
1029[SRDescription(nameof(SR.DataGridViewBackgroundColorChangedDescr))]
1071[SRCategory(nameof(SR.CatAppearance))]
1072[SRDescription(nameof(SR.DataGridView_BorderStyleDescr))]
1101[SRCategory(nameof(SR.CatPropertyChanged))]
1102[SRDescription(nameof(SR.DataGridViewBorderStyleChangedDescr))]
1150[SRCategory(nameof(SR.CatAppearance))]
1151[SRDescription(nameof(SR.DataGridView_CellBorderStyleDescr))]
1244throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle"));
1321[SRCategory(nameof(SR.CatPropertyChanged))]
1322[SRDescription(nameof(SR.DataGridView_CellBorderStyleChangedDescr))]
1370[SRCategory(nameof(SR.CatBehavior))]
1371[SRDescription(nameof(SR.DataGridView_ClipboardCopyModeDescr))]
1396throw new InvalidOperationException(SR.DataGridView_CannotSetColumnCountOnDataBoundDataGridView);
1438[SRCategory(nameof(SR.CatAppearance))]
1439[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleDescr))]
1461throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle"));
1496[SRCategory(nameof(SR.CatPropertyChanged))]
1497[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleChangedDescr))]
1504[SRCategory(nameof(SR.CatAppearance))]
1505[SRDescription(nameof(SR.DataGridView_ColumnHeadersDefaultCellStyleDescr))]
1557[SRCategory(nameof(SR.CatPropertyChanged))]
1558[SRDescription(nameof(SR.DataGridViewColumnHeadersDefaultCellStyleChangedDescr))]
1565[SRCategory(nameof(SR.CatAppearance))]
1567[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightDescr))]
1587[SRCategory(nameof(SR.CatPropertyChanged))]
1588[SRDescription(nameof(SR.DataGridViewColumnHeadersHeightChangedDescr))]
1604[SRCategory(nameof(SR.CatBehavior))]
1605[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeDescr))]
1622[SRCategory(nameof(SR.CatPropertyChanged))]
1623[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeChangedDescr))]
1634[SRCategory(nameof(SR.CatAppearance))]
1636[SRDescription(nameof(SR.DataGridViewColumnHeadersVisibleDescr))]
1652throw new InvalidOperationException(SR.DataGridView_ColumnHeadersCannotBeInvisible);
1728throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1735throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
1740throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
1745throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1761throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1875[SRCategory(nameof(SR.CatData))]
1877[SRDescription(nameof(SR.DataGridViewDataMemberDescr))]
1894[SRCategory(nameof(SR.CatPropertyChanged))]
1895[SRDescription(nameof(SR.DataGridViewDataMemberChangedDescr))]
1903[SRCategory(nameof(SR.CatData))]
1906[SRDescription(nameof(SR.DataGridViewDataSourceDescr))]
1951[SRCategory(nameof(SR.CatPropertyChanged))]
1952[SRDescription(nameof(SR.DataGridViewDataSourceChangedDescr))]
1959[SRCategory(nameof(SR.CatAppearance))]
1960[SRDescription(nameof(SR.DataGridView_DefaultCellStyleDescr))]
2071[SRCategory(nameof(SR.CatPropertyChanged))]
2072[SRDescription(nameof(SR.DataGridViewDefaultCellStyleChangedDescr))]
2142[SRCategory(nameof(SR.CatBehavior))]
2144[SRDescription(nameof(SR.DataGridView_EditModeDescr))]
2161[SRCategory(nameof(SR.CatPropertyChanged))]
2162[SRDescription(nameof(SR.DataGridView_EditModeChangedDescr))]
2235AccessibleName = SR.DataGridView_AccEditingPanelAccName
2256[SRCategory(nameof(SR.CatAppearance))]
2258[SRDescription(nameof(SR.DataGridView_EnableHeadersVisualStylesDescr))]
2294throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
2299throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeAHeaderOrSharedCell);
2309throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeInvisible);
2450throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeInvisible);
2455throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeFrozen);
2466throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedColumns);
2473throw new InvalidOperationException(SR.DataGridView_FrozenColumnsPreventFirstDisplayedScrollingColumn);
2530throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeInvisible);
2535throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeFrozen);
2546throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedRows);
2553throw new InvalidOperationException(SR.DataGridView_FrozenRowsPreventFirstDisplayedScrollingRow);
2634[SRCategory(nameof(SR.CatAppearance))]
2635[SRDescription(nameof(SR.DataGridViewGridColorDescr))]
2642throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor)));
2644throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor)));
2654[SRCategory(nameof(SR.CatPropertyChanged))]
2655[SRDescription(nameof(SR.DataGridViewOnGridColorChangedDescr))]
2985[SRCategory(nameof(SR.CatBehavior))]
2987[SRDescription(nameof(SR.DataGridView_MultiSelectDescr))]
3002[SRCategory(nameof(SR.CatPropertyChanged))]
3003[SRDescription(nameof(SR.DataGridViewOnMultiSelectChangedDescr))]
3052[SRCategory(nameof(SR.CatBehavior))]
3053[SRDescription(nameof(SR.DataGridView_ReadOnlyDescr))]
3079throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
3126[SRCategory(nameof(SR.CatPropertyChanged))]
3127[SRDescription(nameof(SR.DataGridViewOnReadOnlyChangedDescr))]
3144throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3178throw new InvalidOperationException(SR.DataGridView_CannotSetRowCountOnDataBoundDataGridView);
3224[SRCategory(nameof(SR.CatAppearance))]
3225[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleDescr))]
3248throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle"));
3283[SRCategory(nameof(SR.CatPropertyChanged))]
3284[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleChangedDescr))]
3291[SRCategory(nameof(SR.CatAppearance))]
3292[SRDescription(nameof(SR.DataGridView_RowHeadersDefaultCellStyleDescr))]
3322[SRCategory(nameof(SR.CatPropertyChanged))]
3323[SRDescription(nameof(SR.DataGridViewRowHeadersDefaultCellStyleChangedDescr))]
3334[SRCategory(nameof(SR.CatAppearance))]
3336[SRDescription(nameof(SR.DataGridViewRowHeadersVisibleDescr))]
3347throw new InvalidOperationException(SR.DataGridView_RowHeadersCannotBeInvisible);
3371[SRCategory(nameof(SR.CatLayout))]
3373[SRDescription(nameof(SR.DataGridView_RowHeadersWidthDescr))]
3425[SRCategory(nameof(SR.CatPropertyChanged))]
3426[SRDescription(nameof(SR.DataGridViewRowHeadersWidthChangedDescr))]
3442[SRCategory(nameof(SR.CatBehavior))]
3443[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeDescr))]
3465[SRCategory(nameof(SR.CatPropertyChanged))]
3466[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeChangedDescr))]
3484[SRCategory(nameof(SR.CatAppearance))]
3485[SRDescription(nameof(SR.DataGridView_RowsDefaultCellStyleDescr))]
3515[SRCategory(nameof(SR.CatPropertyChanged))]
3516[SRDescription(nameof(SR.DataGridViewRowsDefaultCellStyleChangedDescr))]
3523[SRCategory(nameof(SR.CatAppearance))]
3525[SRDescription(nameof(SR.DataGridView_RowTemplateDescr))]
3543throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
3573[SRCategory(nameof(SR.CatLayout))]
3574[SRDescription(nameof(SR.DataGridView_ScrollBarsDescr))]
3596throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3733[SRCategory(nameof(SR.CatBehavior))]
3735[SRDescription(nameof(SR.DataGridView_SelectionModeDescr))]
3753throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString()));
3765[SRCategory(nameof(SR.CatAppearance))]
3766[SRDescription(nameof(SR.DataGridView_ShowCellErrorsDescr))]
3818[SRCategory(nameof(SR.CatAppearance))]
3819[SRDescription(nameof(SR.DataGridView_ShowCellToolTipsDescr))]
3870[SRCategory(nameof(SR.CatAppearance))]
3871[SRDescription(nameof(SR.DataGridView_ShowEditingIconDescr))]
3906[SRCategory(nameof(SR.CatAppearance))]
3907[SRDescription(nameof(SR.DataGridView_ShowRowErrorsDescr))]
3965[SRCategory(nameof(SR.CatBehavior))]
3968[SRDescription(nameof(SR.DataGridView_StandardTabDescr))]
4129[SRCategory(nameof(SR.CatBehavior))]
4132[SRDescription(nameof(SR.DataGridViewVirtualModeDescr))]
4152[SRCategory(nameof(SR.CatPropertyChanged))]
4153[SRDescription(nameof(SR.DataGridViewAutoSizeColumnModeChangedDescr))]
4160[SRCategory(nameof(SR.CatAction))]
4161[SRDescription(nameof(SR.DataGridView_CancelRowEditDescr))]
4168[SRCategory(nameof(SR.CatData))]
4169[SRDescription(nameof(SR.DataGridView_CellBeginEditDescr))]
4176[SRCategory(nameof(SR.CatMouse))]
4177[SRDescription(nameof(SR.DataGridView_CellClickDescr))]
4184[SRCategory(nameof(SR.CatMouse))]
4185[SRDescription(nameof(SR.DataGridView_CellContentClick))]
4192[SRCategory(nameof(SR.CatMouse))]
4193[SRDescription(nameof(SR.DataGridView_CellContentDoubleClick))]
4200[SRCategory(nameof(SR.CatAction))]
4201[SRDescription(nameof(SR.DataGridView_CellContextMenuStripChanged))]
4209[SRCategory(nameof(SR.CatBehavior))]
4210[SRDescription(nameof(SR.DataGridView_CellContextMenuStripNeeded))]
4218[SRCategory(nameof(SR.CatMouse))]
4219[SRDescription(nameof(SR.DataGridView_CellDoubleClickDescr))]
4226[SRCategory(nameof(SR.CatData))]
4227[SRDescription(nameof(SR.DataGridView_CellEndEditDescr))]
4234[SRCategory(nameof(SR.CatFocus))]
4235[SRDescription(nameof(SR.DataGridView_CellEnterDescr))]
4242[SRCategory(nameof(SR.CatPropertyChanged))]
4243[SRDescription(nameof(SR.DataGridView_CellErrorTextChangedDescr))]
4250[SRCategory(nameof(SR.CatData))]
4252[SRDescription(nameof(SR.DataGridView_CellErrorTextNeededDescr))]
4259[SRCategory(nameof(SR.CatDisplay))]
4260[SRDescription(nameof(SR.DataGridView_CellFormattingDescr))]
4267[SRCategory(nameof(SR.CatFocus))]
4268[SRDescription(nameof(SR.DataGridView_CellLeaveDescr))]
4275[SRCategory(nameof(SR.CatMouse))]
4276[SRDescription(nameof(SR.DataGridView_CellMouseClickDescr))]
4283[SRCategory(nameof(SR.CatMouse))]
4284[SRDescription(nameof(SR.DataGridView_CellMouseDoubleClickDescr))]
4291[SRCategory(nameof(SR.CatMouse))]
4292[SRDescription(nameof(SR.DataGridView_CellMouseDownDescr))]
4299[SRCategory(nameof(SR.CatMouse))]
4300[SRDescription(nameof(SR.DataGridView_CellMouseEnterDescr))]
4307[SRCategory(nameof(SR.CatMouse))]
4308[SRDescription(nameof(SR.DataGridView_CellMouseLeaveDescr))]
4315[SRCategory(nameof(SR.CatMouse))]
4316[SRDescription(nameof(SR.DataGridView_CellMouseMoveDescr))]
4323[SRCategory(nameof(SR.CatMouse))]
4324[SRDescription(nameof(SR.DataGridView_CellMouseUpDescr))]
4331[SRCategory(nameof(SR.CatDisplay))]
4332[SRDescription(nameof(SR.DataGridView_CellPaintingDescr))]
4339[SRCategory(nameof(SR.CatDisplay))]
4340[SRDescription(nameof(SR.DataGridView_CellParsingDescr))]
4347[SRCategory(nameof(SR.CatBehavior))]
4348[SRDescription(nameof(SR.DataGridView_CellStateChangedDescr))]
4355[SRCategory(nameof(SR.CatPropertyChanged))]
4356[SRDescription(nameof(SR.DataGridView_CellStyleChangedDescr))]
4363[SRCategory(nameof(SR.CatPropertyChanged))]
4364[SRDescription(nameof(SR.DataGridView_CellStyleContentChangedDescr))]
4371[SRCategory(nameof(SR.CatPropertyChanged))]
4372[SRDescription(nameof(SR.DataGridView_CellToolTipTextChangedDescr))]
4379[SRCategory(nameof(SR.CatBehavior))]
4380[SRDescription(nameof(SR.DataGridView_CellToolTipTextNeededDescr))]
4388[SRCategory(nameof(SR.CatFocus))]
4389[SRDescription(nameof(SR.DataGridView_CellValidatedDescr))]
4396[SRCategory(nameof(SR.CatFocus))]
4397[SRDescription(nameof(SR.DataGridView_CellValidatingDescr))]
4404[SRCategory(nameof(SR.CatAction))]
4405[SRDescription(nameof(SR.DataGridView_CellValueChangedDescr))]
4412[SRCategory(nameof(SR.CatData))]
4414[SRDescription(nameof(SR.DataGridView_CellValueNeededDescr))]
4421[SRCategory(nameof(SR.CatData))]
4423[SRDescription(nameof(SR.DataGridView_CellValuePushedDescr))]
4430[SRCategory(nameof(SR.CatAction))]
4431[SRDescription(nameof(SR.DataGridView_ColumnAddedDescr))]
4438[SRCategory(nameof(SR.CatPropertyChanged))]
4439[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripChangedDescr))]
4446[SRCategory(nameof(SR.CatPropertyChanged))]
4447[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameChangedDescr))]
4454[SRCategory(nameof(SR.CatPropertyChanged))]
4455[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleChangedDescr))]
4462[SRCategory(nameof(SR.CatPropertyChanged))]
4463[SRDescription(nameof(SR.DataGridView_ColumnDisplayIndexChangedDescr))]
4470[SRCategory(nameof(SR.CatMouse))]
4471[SRDescription(nameof(SR.DataGridView_ColumnDividerDoubleClickDescr))]
4478[SRCategory(nameof(SR.CatPropertyChanged))]
4479[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthChangedDescr))]
4486[SRCategory(nameof(SR.CatMouse))]
4487[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseClickDescr))]
4494[SRCategory(nameof(SR.CatMouse))]
4495[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseDoubleClickDescr))]
4502[SRCategory(nameof(SR.CatPropertyChanged))]
4503[SRDescription(nameof(SR.DataGridView_ColumnHeaderCellChangedDescr))]
4510[SRCategory(nameof(SR.CatPropertyChanged))]
4511[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthChangedDescr))]
4518[SRCategory(nameof(SR.CatPropertyChanged))]
4519[SRDescription(nameof(SR.DataGridView_ColumnNameChangedDescr))]
4526[SRCategory(nameof(SR.CatAction))]
4527[SRDescription(nameof(SR.DataGridView_ColumnRemovedDescr))]
4534[SRCategory(nameof(SR.CatBehavior))]
4535[SRDescription(nameof(SR.DataGridViewColumnSortModeChangedDescr))]
4542[SRCategory(nameof(SR.CatBehavior))]
4543[SRDescription(nameof(SR.DataGridView_ColumnStateChangedDescr))]
4550[SRCategory(nameof(SR.CatPropertyChanged))]
4551[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextChangedDescr))]
4558[SRCategory(nameof(SR.CatAction))]
4559[SRDescription(nameof(SR.DataGridView_ColumnWidthChangedDescr))]
4566[SRCategory(nameof(SR.CatAction))]
4567[SRDescription(nameof(SR.DataGridView_CurrentCellChangedDescr))]
4574[SRCategory(nameof(SR.CatBehavior))]
4576[SRDescription(nameof(SR.DataGridView_CurrentCellDirtyStateChangedDescr))]
4583[SRCategory(nameof(SR.CatData))]
4584[SRDescription(nameof(SR.DataGridView_DataBindingCompleteDescr))]
4591[SRCategory(nameof(SR.CatBehavior))]
4592[SRDescription(nameof(SR.DataGridView_DataErrorDescr))]
4599[SRCategory(nameof(SR.CatData))]
4601[SRDescription(nameof(SR.DataGridView_DefaultValuesNeededDescr))]
4608[SRCategory(nameof(SR.CatAction))]
4609[SRDescription(nameof(SR.DataGridView_EditingControlShowingDescr))]
4616[SRCategory(nameof(SR.CatData))]
4617[SRDescription(nameof(SR.DataGridView_NewRowNeededDescr))]
4624[SRCategory(nameof(SR.CatPropertyChanged))]
4625[SRDescription(nameof(SR.DataGridView_RowContextMenuStripChangedDescr))]
4632[SRCategory(nameof(SR.CatData))]
4634[SRDescription(nameof(SR.DataGridView_RowContextMenuStripNeededDescr))]
4641[SRCategory(nameof(SR.CatPropertyChanged))]
4642[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleChangedDescr))]
4649[SRCategory(nameof(SR.CatData))]
4651[SRDescription(nameof(SR.DataGridView_RowDirtyStateNeededDescr))]
4658[SRCategory(nameof(SR.CatMouse))]
4659[SRDescription(nameof(SR.DataGridView_RowDividerDoubleClickDescr))]
4666[SRCategory(nameof(SR.CatAppearance))]
4667[SRDescription(nameof(SR.DataGridView_RowDividerHeightChangedDescr))]
4674[SRCategory(nameof(SR.CatFocus))]
4675[SRDescription(nameof(SR.DataGridView_RowEnterDescr))]
4682[SRCategory(nameof(SR.CatPropertyChanged))]
4683[SRDescription(nameof(SR.DataGridView_RowErrorTextChangedDescr))]
4690[SRCategory(nameof(SR.CatData))]
4692[SRDescription(nameof(SR.DataGridView_RowErrorTextNeededDescr))]
4699[SRCategory(nameof(SR.CatMouse))]
4700[SRDescription(nameof(SR.DataGridView_RowHeaderMouseClickDescr))]
4707[SRCategory(nameof(SR.CatMouse))]
4708[SRDescription(nameof(SR.DataGridView_RowHeaderMouseDoubleClickDescr))]
4715[SRCategory(nameof(SR.CatPropertyChanged))]
4716[SRDescription(nameof(SR.DataGridView_RowHeaderCellChangedDescr))]
4723[SRCategory(nameof(SR.CatPropertyChanged))]
4724[SRDescription(nameof(SR.DataGridView_RowHeightChangedDescr))]
4731[SRCategory(nameof(SR.CatData))]
4733[SRDescription(nameof(SR.DataGridView_RowHeightInfoNeededDescr))]
4750[SRCategory(nameof(SR.CatData))]
4752[SRDescription(nameof(SR.DataGridView_RowHeightInfoPushedDescr))]
4759[SRCategory(nameof(SR.CatFocus))]
4760[SRDescription(nameof(SR.DataGridView_RowLeaveDescr))]
4767[SRCategory(nameof(SR.CatPropertyChanged))]
4768[SRDescription(nameof(SR.DataGridView_RowMinimumHeightChangedDescr))]
4775[SRCategory(nameof(SR.CatDisplay))]
4776[SRDescription(nameof(SR.DataGridView_RowPostPaintDescr))]
4793[SRCategory(nameof(SR.CatDisplay))]
4794[SRDescription(nameof(SR.DataGridView_RowPrePaintDescr))]
4811[SRCategory(nameof(SR.CatAction))]
4812[SRDescription(nameof(SR.DataGridView_RowsAddedDescr))]
4819[SRCategory(nameof(SR.CatAction))]
4820[SRDescription(nameof(SR.DataGridView_RowsRemovedDescr))]
4827[SRCategory(nameof(SR.CatBehavior))]
4828[SRDescription(nameof(SR.DataGridView_RowStateChangedDescr))]
4835[SRCategory(nameof(SR.CatBehavior))]
4837[SRDescription(nameof(SR.DataGridView_RowUnsharedDescr))]
4844[SRCategory(nameof(SR.CatFocus))]
4845[SRDescription(nameof(SR.DataGridView_RowValidatedDescr))]
4852[SRCategory(nameof(SR.CatFocus))]
4853[SRDescription(nameof(SR.DataGridView_RowValidatingDescr))]
4860[SRCategory(nameof(SR.CatAction))]
4861[SRDescription(nameof(SR.DataGridView_ScrollDescr))]
4868[SRCategory(nameof(SR.CatAction))]
4869[SRDescription(nameof(SR.DataGridView_SelectionChangedDescr))]
4876[SRCategory(nameof(SR.CatData))]
4878[SRDescription(nameof(SR.DataGridView_SortCompareDescr))]
4885[SRCategory(nameof(SR.CatData))]
4886[SRDescription(nameof(SR.DataGridView_SortedDescr))]
4901[SRCategory(nameof(SR.CatAction))]
4902[SRDescription(nameof(SR.DataGridView_UserAddedRowDescr))]
4909[SRCategory(nameof(SR.CatAction))]
4910[SRDescription(nameof(SR.DataGridView_UserDeletedRowDescr))]
4917[SRCategory(nameof(SR.CatAction))]
4918[SRDescription(nameof(SR.DataGridView_UserDeletingRowDescr))]
4932throw new InvalidOperationException(SR.DataGridViewBeginInit);
4963SR.DataGridView_SelectionModeReset,
4965SR.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)
70[SRCategory(nameof(SR.CatLayout))]
72[SRDescription(nameof(SR.DataGridViewColumn_AutoSizeModeDescr))]
102throw new InvalidOperationException(SR.DataGridViewColumn_AutoSizeCriteriaCannotUseInvisibleHeaders);
110throw new InvalidOperationException(SR.DataGridViewColumn_FrozenColumnCannotAutoFill);
164[SRCategory(nameof(SR.CatBehavior))]
165[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripDescr))]
176[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameDescr))]
177[SRCategory(nameof(SR.CatData))]
195[SRCategory(nameof(SR.CatAppearance))]
196[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleDescr))]
243throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue));
250throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexNegative);
255throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexExceedsColumnCount);
277throw new ArgumentOutOfRangeException(nameof(DisplayIndex), value, SR.DataGridViewColumn_DisplayIndexTooNegative);
322[SRCategory(nameof(SR.CatLayout))]
323[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthDescr))]
330[SRCategory(nameof(SR.CatLayout))]
332[SRDescription(nameof(SR.DataGridViewColumn_FillWeightDescr))]
365[SRCategory(nameof(SR.CatLayout))]
366[SRDescription(nameof(SR.DataGridView_ColumnFrozenDescr))]
382[SRCategory(nameof(SR.CatAppearance))]
383[SRDescription(nameof(SR.DataGridView_ColumnHeaderTextDescr))]
606[SRCategory(nameof(SR.CatLayout))]
607[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthDescr))]
665[SRCategory(nameof(SR.CatBehavior))]
666[SRDescription(nameof(SR.DataGridView_ColumnReadOnlyDescr))]
679throw new InvalidOperationException(SR.DataGridView_ColumnBoundToAReadOnlyFieldMustRemainReadOnly);
686[SRCategory(nameof(SR.CatBehavior))]
687[SRDescription(nameof(SR.DataGridView_ColumnResizableDescr))]
699[SRCategory(nameof(SR.CatBehavior))]
700[SRDescription(nameof(SR.DataGridView_ColumnSortModeDescr))]
730throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, (value).ToString(), DataGridView.SelectionMode.ToString()));
757[SRCategory(nameof(SR.CatAppearance))]
758[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextDescr))]
795[SRCategory(nameof(SR.CatAppearance))]
796[SRDescription(nameof(SR.DataGridView_ColumnVisibleDescr))]
803[SRCategory(nameof(SR.CatLayout))]
805[SRDescription(nameof(SR.DataGridView_ColumnWidthDescr))]
890throw 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))]
737_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1"))
798[SRCategory(nameof(SR.CatAppearance))]
801[SRDescription(nameof(SR.ListViewFocusedItemDescr))]
869[SRCategory(nameof(SR.CatAppearance))]
871[SRDescription(nameof(SR.ListViewFullRowSelectDescr))]
892[SRCategory(nameof(SR.CatAppearance))]
894[SRDescription(nameof(SR.ListViewGridLinesDescr))]
930[SRCategory(nameof(SR.CatBehavior))]
932[SRDescription(nameof(SR.ListViewGroupImageListDescr))]
963[SRCategory(nameof(SR.CatBehavior))]
967[SRDescription(nameof(SR.ListViewGroupsDescr))]
991[SRCategory(nameof(SR.CatBehavior))]
993[SRDescription(nameof(SR.ListViewHeaderStyleDescr))]
1026[SRCategory(nameof(SR.CatBehavior))]
1028[SRDescription(nameof(SR.ListViewHideSelectionDescr))]
1046[SRCategory(nameof(SR.CatBehavior))]
1048[SRDescription(nameof(SR.ListViewHotTrackingDescr))]
1074[SRCategory(nameof(SR.CatBehavior))]
1076[SRDescription(nameof(SR.ListViewHoverSelectDescr))]
1090throw new ArgumentException(SR.ListViewHoverMustBeOnWhenHotTrackingIsOn, nameof(value));
1109[SRDescription(nameof(SR.ListViewInsertionMarkDescr))]
1132[SRCategory(nameof(SR.CatBehavior))]
1136[SRDescription(nameof(SR.ListViewItemsDescr))]
1149[SRCategory(nameof(SR.CatBehavior))]
1151[SRDescription(nameof(SR.ListViewLabelEditDescr))]
1171[SRCategory(nameof(SR.CatBehavior))]
1174[SRDescription(nameof(SR.ListViewLabelWrapDescr))]
1194[SRCategory(nameof(SR.CatBehavior))]
1196[SRDescription(nameof(SR.ListViewLargeImageListDescr))]
1247[SRCategory(nameof(SR.CatBehavior))]
1250[SRDescription(nameof(SR.ListViewItemSorterDescr))]
1274[SRCategory(nameof(SR.CatBehavior))]
1276[SRDescription(nameof(SR.ListViewMultiSelectDescr))]
1297[SRCategory(nameof(SR.CatBehavior))]
1299[SRDescription(nameof(SR.ListViewOwnerDrawDescr))]
1322[SRCategory(nameof(SR.CatAppearance))]
1325[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1346[SRCategory(nameof(SR.CatPropertyChanged))]
1347[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1357[SRCategory(nameof(SR.CatBehavior))]
1359[SRDescription(nameof(SR.ListViewScrollableDescr))]
1394[SRCategory(nameof(SR.CatAppearance))]
1397[SRDescription(nameof(SR.ListViewSelectedItemsDescr))]
1408[SRCategory(nameof(SR.CatBehavior))]
1410[SRDescription(nameof(SR.ListViewShowGroupsDescr))]
1433[SRCategory(nameof(SR.CatBehavior))]
1435[SRDescription(nameof(SR.ListViewSmallImageListDescr))]
1474[SRCategory(nameof(SR.CatBehavior))]
1476[SRDescription(nameof(SR.ListViewShowItemToolTipsDescr))]
1493[SRCategory(nameof(SR.CatBehavior))]
1495[SRDescription(nameof(SR.ListViewSortingDescr))]
1539[SRCategory(nameof(SR.CatBehavior))]
1541[SRDescription(nameof(SR.ListViewStateImageListDescr))]
1636[SRCategory(nameof(SR.CatAppearance))]
1638[SRDescription(nameof(SR.ListViewTileSizeDescr))]
1672throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive);
1704[SRCategory(nameof(SR.CatAppearance))]
1707[SRDescription(nameof(SR.ListViewTopItemDescr))]
1714throw new InvalidOperationException(SR.ListViewGetTopItem);
1729throw new InvalidOperationException(SR.ListViewSetTopItem);
1798[SRCategory(nameof(SR.CatAppearance))]
1800[SRDescription(nameof(SR.ListViewViewDescr))]
1811throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes);
1821throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode);
1848[SRCategory(nameof(SR.CatBehavior))]
1851[SRDescription(nameof(SR.ListViewVirtualListSizeDescr))]
1862throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value));
1898[SRCategory(nameof(SR.CatBehavior))]
1901[SRDescription(nameof(SR.ListViewVirtualModeDescr))]
1917throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoItems);
1922throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoCheckedItems);
1927throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoSelectedItems);
1933throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
1942[SRCategory(nameof(SR.CatBehavior))]
1943[SRDescription(nameof(SR.ListViewAfterLabelEditDescr))]
1950[SRCategory(nameof(SR.CatBehavior))]
1951[SRDescription(nameof(SR.ListViewBeforeLabelEditDescr))]
1958[SRCategory(nameof(SR.CatAction))]
1959[SRDescription(nameof(SR.ListViewCacheVirtualItemsEventDescr))]
1966[SRCategory(nameof(SR.CatAction))]
1967[SRDescription(nameof(SR.ListViewColumnClickDescr))]
1977[SRCategory(nameof(SR.CatAction))]
1978[SRDescription(nameof(SR.ListViewGroupTaskLinkClickDescr))]
1988[SRCategory(nameof(SR.CatPropertyChanged))]
1989[SRDescription(nameof(SR.ListViewColumnReorderedDscr))]
1999[SRCategory(nameof(SR.CatPropertyChanged))]
2000[SRDescription(nameof(SR.ListViewColumnWidthChangedDscr))]
2010[SRCategory(nameof(SR.CatPropertyChanged))]
2011[SRDescription(nameof(SR.ListViewColumnWidthChangingDscr))]
2021[SRCategory(nameof(SR.CatBehavior))]
2022[SRDescription(nameof(SR.ListViewDrawColumnHeaderEventDescr))]
2032[SRCategory(nameof(SR.CatBehavior))]
2033[SRDescription(nameof(SR.ListViewDrawItemEventDescr))]
2043[SRCategory(nameof(SR.CatBehavior))]
2044[SRDescription(nameof(SR.ListViewDrawSubItemEventDescr))]
2051[SRCategory(nameof(SR.CatAction))]
2052[SRDescription(nameof(SR.ListViewItemClickDescr))]
2059[SRCategory(nameof(SR.CatBehavior))]
2060[SRDescription(nameof(SR.CheckedListBoxItemCheckDescr))]
2067[SRCategory(nameof(SR.CatBehavior))]
2068[SRDescription(nameof(SR.ListViewItemCheckedDescr))]
2075[SRCategory(nameof(SR.CatAction))]
2076[SRDescription(nameof(SR.ListViewItemDragDescr))]
2083[SRCategory(nameof(SR.CatAction))]
2084[SRDescription(nameof(SR.ListViewItemMouseHoverDescr))]
2091[SRCategory(nameof(SR.CatBehavior))]
2092[SRDescription(nameof(SR.ListViewItemSelectionChangedDescr))]
2102[SRCategory(nameof(SR.CatBehavior))]
2103[SRDescription(nameof(SR.ListViewGroupCollapsedStateChangedDescr))]
2138[SRCategory(nameof(SR.CatAction))]
2139[SRDescription(nameof(SR.ListViewRetrieveVirtualItemEventDescr))]
2146[SRCategory(nameof(SR.CatAction))]
2147[SRDescription(nameof(SR.ListViewSearchForVirtualItemDescr))]
2154[SRCategory(nameof(SR.CatBehavior))]
2155[SRDescription(nameof(SR.ListViewSelectedIndexChangedDescr))]
2162[SRCategory(nameof(SR.CatBehavior))]
2163[SRDescription(nameof(SR.ListViewVirtualItemsSelectionRangeChangedDescr))]
2256throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
3217throw new InvalidOperationException(SR.ListViewFindNearestItemWorksOnlyInIconView);
3222throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection));
3594string.Format(SR.InvalidArgument, nameof(index), index))
3671string.Format(SR.InvalidArgument, nameof(itemIndex), itemIndex))
3817throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch));
3828throw new InvalidOperationException(SR.ListViewAddColumnFailed);
4013throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items));
4040throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
4206throw new InvalidOperationException(SR.ListViewAddItemFailed);
4423? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header)
4424: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
4988throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
5234throw new InvalidOperationException(SR.ListViewColumnInfoSet);
5529throw new InvalidOperationException(SR.ListViewSortNotAllowedInVirtualListView);
6752ListViewItem lvItem = rVI.Item ?? throw new InvalidOperationException(SR.ListViewVirtualItemRequired);
6766throw new InvalidOperationException(SR.ListViewVirtualModeCantAccessSubItem);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (57)
59[SRDescription(nameof(SR.DescriptionMonthCalendar))]
168[SRDescription(nameof(SR.MonthCalendarAnnuallyBoldedDatesDescr))]
195[SRDescription(nameof(SR.MonthCalendarMonthBackColorDescr))]
269[SRCategory(nameof(SR.CatAppearance))]
271[SRDescription(nameof(SR.MonthCalendarDimensionsDescr))]
370[SRCategory(nameof(SR.CatBehavior))]
373[SRDescription(nameof(SR.MonthCalendarFirstDayOfWeekDescr))]
411[SRDescription(nameof(SR.MonthCalendarForeColorDescr))]
448[SRCategory(nameof(SR.CatBehavior))]
449[SRDescription(nameof(SR.MonthCalendarMaxDateDescr))]
472[SRCategory(nameof(SR.CatBehavior))]
474[SRDescription(nameof(SR.MonthCalendarMaxSelectionCountDescr))]
491throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
504[SRCategory(nameof(SR.CatBehavior))]
505[SRDescription(nameof(SR.MonthCalendarMinDateDescr))]
528[SRDescription(nameof(SR.MonthCalendarMonthlyBoldedDatesDescr))]
577[SRCategory(nameof(SR.CatAppearance))]
580[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
605[SRCategory(nameof(SR.CatBehavior))]
607[SRDescription(nameof(SR.MonthCalendarScrollChangeDescr))]
633[SRCategory(nameof(SR.CatBehavior))]
636[SRDescription(nameof(SR.MonthCalendarSelectionEndDescr))]
670[SRCategory(nameof(SR.CatBehavior))]
673[SRDescription(nameof(SR.MonthCalendarSelectionStartDescr))]
707[SRCategory(nameof(SR.CatBehavior))]
708[SRDescription(nameof(SR.MonthCalendarSelectionRangeDescr))]
720[SRCategory(nameof(SR.CatBehavior))]
722[SRDescription(nameof(SR.MonthCalendarShowTodayDescr))]
743[SRCategory(nameof(SR.CatBehavior))]
745[SRDescription(nameof(SR.MonthCalendarShowTodayCircleDescr))]
765[SRCategory(nameof(SR.CatBehavior))]
768[SRDescription(nameof(SR.MonthCalendarShowWeekNumbersDescr))]
792[SRCategory(nameof(SR.CatAppearance))]
795[SRDescription(nameof(SR.MonthCalendarSingleMonthSizeDescr))]
805throw new InvalidOperationException(SR.InvalidSingleMonthSize);
853[SRCategory(nameof(SR.CatBehavior))]
854[SRDescription(nameof(SR.MonthCalendarTodayDateDescr))]
897[SRCategory(nameof(SR.CatBehavior))]
900[SRDescription(nameof(SR.MonthCalendarTodayDateSetDescr))]
906[SRCategory(nameof(SR.CatAppearance))]
907[SRDescription(nameof(SR.MonthCalendarTitleBackColorDescr))]
915throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
927[SRCategory(nameof(SR.CatAppearance))]
928[SRDescription(nameof(SR.MonthCalendarTitleForeColorDescr))]
936throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
948[SRCategory(nameof(SR.CatAppearance))]
949[SRDescription(nameof(SR.MonthCalendarTrailingForeColorDescr))]
957throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
1011[SRCategory(nameof(SR.CatAction))]
1012[SRDescription(nameof(SR.MonthCalendarOnDateChangedDescr))]
1019[SRCategory(nameof(SR.CatAction))]
1020[SRDescription(nameof(SR.MonthCalendarOnDateSelectedDescr))]
1065[SRCategory(nameof(SR.CatPropertyChanged))]
1066[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1746string.Format(SR.MonthCalendarRange, minDate.ToShortDateString(), maxDate.ToShortDateString()));
1760throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
1765throw 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))]
69[SRCategory(nameof(SR.CatBehavior))]
71[SRDescription(nameof(SR.TrackBarAutoSizeDescr))]
104[SRCategory(nameof(SR.CatPropertyChanged))]
105[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
273[SRCategory(nameof(SR.CatBehavior))]
275[SRDescription(nameof(SR.TrackBarLargeChangeDescr))]
283throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value));
302[SRCategory(nameof(SR.CatBehavior))]
305[SRDescription(nameof(SR.TrackBarMaximumDescr))]
328[SRCategory(nameof(SR.CatBehavior))]
331[SRDescription(nameof(SR.TrackBarMinimumDescr))]
356[SRCategory(nameof(SR.CatAppearance))]
359[SRDescription(nameof(SR.TrackBarOrientationDescr))]
448[SRCategory(nameof(SR.CatAppearance))]
451[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
476[SRCategory(nameof(SR.CatBehavior))]
478[SRDescription(nameof(SR.TrackBarSmallChangeDescr))]
486throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
528[SRCategory(nameof(SR.CatAppearance))]
530[SRDescription(nameof(SR.TrackBarTickStyleDescr))]
558[SRCategory(nameof(SR.CatAppearance))]
560[SRDescription(nameof(SR.TrackBarTickFrequencyDescr))]
600[SRCategory(nameof(SR.CatBehavior))]
603[SRDescription(nameof(SR.TrackBarValueDescr))]
620throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
661[SRCategory(nameof(SR.CatPropertyChanged))]
662[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
669[SRCategory(nameof(SR.CatBehavior))]
670[SRDescription(nameof(SR.TrackBarOnScrollDescr))]
685[SRCategory(nameof(SR.CatAction))]
686[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 (153)
219[SRDescription(nameof(SR.FormAcceptButtonDescr))]
299[SRDescription(nameof(SR.FormActiveMDIChildDescr))]
354[SRDescription(nameof(SR.ControlAllowTransparencyDescr))]
390[SRCategory(nameof(SR.CatLayout))]
391[SRDescription(nameof(SR.FormAutoScaleDescr))]
515[SRCategory(nameof(SR.CatPropertyChanged))]
516[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
528[SRDescription(nameof(SR.ControlAutoSizeModeDescr))]
529[SRCategory(nameof(SR.CatLayout))]
655[SRCategory(nameof(SR.CatAppearance))]
658[SRDescription(nameof(SR.FormBorderStyleDescr))]
711[SRDescription(nameof(SR.FormCancelButtonDescr))]
741[SRCategory(nameof(SR.CatWindowStyle))]
743[SRDescription(nameof(SR.FormControlBoxDescr))]
891[SRCategory(nameof(SR.CatLayout))]
894[SRDescription(nameof(SR.FormDesktopBoundsDescr))]
914[SRCategory(nameof(SR.CatLayout))]
917[SRDescription(nameof(SR.FormDesktopLocationDescr))]
937[SRCategory(nameof(SR.CatBehavior))]
940[SRDescription(nameof(SR.FormDialogResultDescr))]
961[SRCategory(nameof(SR.CatWindowStyle))]
963[SRDescription(nameof(SR.FormHelpButtonDescr))]
988[SRCategory(nameof(SR.CatBehavior))]
989[SRDescription(nameof(SR.FormHelpButtonClickedDescr))]
1001[SRCategory(nameof(SR.CatWindowStyle))]
1002[SRDescription(nameof(SR.FormIconDescr))]
1069[SRCategory(nameof(SR.CatWindowStyle))]
1072[SRDescription(nameof(SR.FormIsMDIChildDescr))]
1088[SRCategory(nameof(SR.CatWindowStyle))]
1090[SRDescription(nameof(SR.FormIsMDIContainerDescr))]
1140[SRDescription(nameof(SR.FormKeyPreviewDescr))]
1175[SRCategory(nameof(SR.CatPropertyChanged))]
1176[SRDescription(nameof(SR.FormOnMaximizedBoundsChangedDescr))]
1186[SRCategory(nameof(SR.CatLayout))]
1188[SRDescription(nameof(SR.FormMaximumSizeDescr))]
1250[SRCategory(nameof(SR.CatPropertyChanged))]
1251[SRDescription(nameof(SR.FormOnMaximumSizeChangedDescr))]
1258[SRCategory(nameof(SR.CatWindowStyle))]
1260[SRDescription(nameof(SR.FormMenuStripDescr))]
1300[SRCategory(nameof(SR.CatLayout))]
1302[SRDescription(nameof(SR.FormMinimumSizeDescr))]
1381[SRCategory(nameof(SR.CatPropertyChanged))]
1382[SRDescription(nameof(SR.FormOnMinimumSizeChangedDescr))]
1393[SRCategory(nameof(SR.CatWindowStyle))]
1395[SRDescription(nameof(SR.FormMaximizeBoxDescr))]
1410[SRCategory(nameof(SR.CatWindowStyle))]
1413[SRDescription(nameof(SR.FormMDIChildrenDescr))]
1428[SRCategory(nameof(SR.CatWindowStyle))]
1430[SRDescription(nameof(SR.FormMdiChildrenMinimizedAnchorBottomDescr))]
1444[SRCategory(nameof(SR.CatWindowStyle))]
1447[SRDescription(nameof(SR.FormMDIParentDescr))]
1467throw new ArgumentException(SR.AddDifferentThreads, nameof(value));
1484throw new ArgumentException(SR.FormMDIParentAndChild, nameof(value));
1489throw new ArgumentException(SR.MDIParentNotContainer, nameof(value));
1541[SRCategory(nameof(SR.CatWindowStyle))]
1543[SRDescription(nameof(SR.FormMinimizeBoxDescr))]
1557[SRCategory(nameof(SR.CatWindowStyle))]
1560[SRDescription(nameof(SR.FormModalDescr))]
1567[SRCategory(nameof(SR.CatWindowStyle))]
1569[SRDescription(nameof(SR.FormOpacityDescr))]
1616[SRCategory(nameof(SR.CatWindowStyle))]
1619[SRDescription(nameof(SR.FormOwnedFormsDescr))]
1625[SRCategory(nameof(SR.CatWindowStyle))]
1628[SRDescription(nameof(SR.FormOwnerDescr))]
1642throw new ArgumentException(SR.NonTopLevelCantHaveOwner, nameof(value));
1692[SRCategory(nameof(SR.CatAppearance))]
1695[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1730[SRCategory(nameof(SR.CatWindowStyle))]
1731[SRDescription(nameof(SR.FormShowInTaskbarDescr))]
1755[SRCategory(nameof(SR.CatWindowStyle))]
1756[SRDescription(nameof(SR.FormShowIconDescr))]
1837[SRCategory(nameof(SR.CatWindowStyle))]
1839[SRDescription(nameof(SR.FormSizeGripStyleDescr))]
1866[SRCategory(nameof(SR.CatLayout))]
1868[SRDescription(nameof(SR.FormStartPositionDescr))]
1903[SRCategory(nameof(SR.CatBehavior))]
1908[SRDescription(nameof(SR.ControlTabStopDescr))]
1967throw new ArgumentException(SR.MDIContainerMustBeTopLevel, nameof(value));
1979[SRCategory(nameof(SR.CatWindowStyle))]
1980[SRDescription(nameof(SR.FormTopMostDescr))]
2002[SRCategory(nameof(SR.CatWindowStyle))]
2003[SRDescription(nameof(SR.FormTransparencyKeyDescr))]
2182[SRCategory(nameof(SR.CatWindowStyle))]
2183[SRDescription(nameof(SR.FormCornerPreferenceDescr))]
2274[SRCategory(nameof(SR.CatWindowStyle))]
2275[SRDescription(nameof(SR.FormBorderColorDescr))]
2336[SRCategory(nameof(SR.CatWindowStyle))]
2337[SRDescription(nameof(SR.FormCaptionBackColorDescr))]
2399[SRCategory(nameof(SR.CatWindowStyle))]
2400[SRDescription(nameof(SR.FormCaptionTextColorDescr))]
2468[SRCategory(nameof(SR.CatLayout))]
2470[SRDescription(nameof(SR.FormWindowStateDescr))]
2540[SRCategory(nameof(SR.CatFocus))]
2541[SRDescription(nameof(SR.FormOnActivateDescr))]
2551[SRCategory(nameof(SR.CatBehavior))]
2552[SRDescription(nameof(SR.FormOnClosingDescr))]
2569[SRCategory(nameof(SR.CatBehavior))]
2570[SRDescription(nameof(SR.FormOnClosedDescr))]
2587[SRCategory(nameof(SR.CatFocus))]
2588[SRDescription(nameof(SR.FormOnDeactivateDescr))]
2598[SRCategory(nameof(SR.CatBehavior))]
2599[SRDescription(nameof(SR.FormOnFormClosingDescr))]
2609[SRCategory(nameof(SR.CatAppearance))]
2610[SRDescription(nameof(SR.FormBorderColorChangedDescr))]
2621[SRCategory(nameof(SR.CatAppearance))]
2622[SRDescription(nameof(SR.FormCaptionBackColorChangedDescr))]
2633[SRCategory(nameof(SR.CatAppearance))]
2634[SRDescription(nameof(SR.FormCaptionTextColorChangedDescr))]
2645[SRCategory(nameof(SR.CatAppearance))]
2646[SRDescription(nameof(SR.FormCornerPreferenceChangedDescr))]
2657[SRCategory(nameof(SR.CatBehavior))]
2658[SRDescription(nameof(SR.FormOnFormClosedDescr))]
2668[SRCategory(nameof(SR.CatBehavior))]
2669[SRDescription(nameof(SR.FormOnLoadDescr))]
2680[SRCategory(nameof(SR.CatLayout))]
2681[SRDescription(nameof(SR.FormOnMDIChildActivateDescr))]
2691[SRCategory(nameof(SR.CatBehavior))]
2692[SRDescription(nameof(SR.FormOnMenuCompleteDescr))]
2703[SRCategory(nameof(SR.CatBehavior))]
2704[SRDescription(nameof(SR.FormOnMenuStartDescr))]
2715[SRCategory(nameof(SR.CatBehavior))]
2716[SRDescription(nameof(SR.FormOnInputLangChangeDescr))]
2727[SRCategory(nameof(SR.CatBehavior))]
2728[SRDescription(nameof(SR.FormOnInputLangChangeRequestDescr))]
2735[SRCategory(nameof(SR.CatPropertyChanged))]
2736[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
2746[SRCategory(nameof(SR.CatBehavior))]
2747[SRDescription(nameof(SR.FormOnShownDescr))]
3182throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close"));
4504[SRCategory(nameof(SR.CatLayout))]
4505[SRDescription(nameof(SR.FormOnDpiChangedDescr))]
4958[SRCategory(nameof(SR.CatAction))]
4959[SRDescription(nameof(SR.FormOnResizeBeginDescr))]
4969[SRCategory(nameof(SR.CatAction))]
4970[SRDescription(nameof(SR.FormOnResizeEndDescr))]
5028throw new InvalidOperationException(SR.TooManyResumeUpdateMenuHandles);
5368throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)));
5373throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show)));
5378throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show)));
5383throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show)));
5388throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5414throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner));
5491throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5503?? throw new InvalidOperationException(SR.FormOrTaskDialog_NoSyncContextForShowAsync);
5562throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5567throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog)));
5572throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog)));
5577throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog)));
5582throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog)));
5587throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5641throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5802throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5814?? 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));