System\Resources\ResXDataNode.cs (5)
88throw new InvalidOperationException(string.Format(SR.NotSerializableType, name, valueType.FullName));
242throw new InvalidOperationException(string.Format(SR.NotSerializableType, _name, valueType.FullName));
375string newMessage = string.Format(SR.NotSupported, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X, nse.Message);
385SR.TypeLoadException,
618throw new TypeLoadException(string.Format(SR.TypeLoadExceptionShort, FileRefType));
System\Resources\ResXResourceReader.cs (8)
148throw new InvalidOperationException(SR.InvalidResXBasePathOperation);
168throw new InvalidOperationException(SR.InvalidResXBasePathOperation);
376string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message);
383string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
389throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e);
401throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx);
437throw new ArgumentException(SR.InvalidResXFileReaderWriterTypes);
606throw new ArgumentException(string.Format(SR.InvalidResXResourceNoName, nodeInfo.ValueData));
System\Windows\Forms\ActiveX\AxHost.cs (52)
36private static readonly COMException s_invalidArgumentException = new(SR.AXInvalidArgument, unchecked((int)0x80070057));
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid));
295add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick"));
303add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick"));
469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged"));
477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged"));
485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged"));
493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged"));
501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged"));
512add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged"));
520add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged"));
528add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged"));
536add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged"));
544add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged"));
555add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click"));
563add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop"));
571add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter"));
579add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver"));
587add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave"));
595add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback"));
603add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested"));
611add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint"));
619add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag"));
627add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp"));
638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick"));
646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged"));
657add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown"));
668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress"));
679add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp"));
687add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout"));
698add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown"));
709add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter"));
720add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave"));
731add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover"));
742add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove"));
753add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp"));
764add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel"));
772add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues"));
780add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
1458throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1526throw new NotSupportedException(string.Format(SR.AXNohWnd, GetType().Name));
1605throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1840throw new InvalidOperationException(SR.AXOcxStateLoaded);
2311throw new LicenseException(GetType(), this, SR.AXNoLicenseToUse);
2775throw new InvalidOperationException(SR.UnableToInitComponent);
2842throw new InvalidOperationException(SR.UnableToInitComponent);
3021transaction = host?.CreateTransaction(SR.AXEditProperties);
3285throw new ThreadStateException(SR.ThreadMustBeSTA);
3563throw new ArgumentException(SR.AXUnknownImage, nameof(picture));
3587throw new ArgumentException(SR.AXUnknownImage, nameof(picture));
3675throw new ArgumentException(SR.AXFontUnitNotPoint, nameof(font));
3730throw 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\Components\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\Control.cs (289)
531[SRDescription(nameof(SR.ControlAccessibilityObjectDescr))]
575[SRCategory(nameof(SR.CatAccessibility))]
579[SRDescription(nameof(SR.ControlAccessibleDefaultActionDescr))]
589[SRCategory(nameof(SR.CatAccessibility))]
592[SRDescription(nameof(SR.ControlAccessibleDescriptionDescr))]
602[SRCategory(nameof(SR.CatAccessibility))]
605[SRDescription(nameof(SR.ControlAccessibleNameDescr))]
615[SRCategory(nameof(SR.CatAccessibility))]
617[SRDescription(nameof(SR.ControlAccessibleRoleDescr))]
632[SRCategory(nameof(SR.CatBehavior))]
634[SRDescription(nameof(SR.ControlAllowDropDescr))]
692[SRCategory(nameof(SR.CatLayout))]
695[SRDescription(nameof(SR.ControlAnchorDescr))]
703[SRCategory(nameof(SR.CatLayout))]
707[SRDescription(nameof(SR.ControlAutoSizeDescr))]
739[SRCategory(nameof(SR.CatPropertyChanged))]
740[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
834[SRCategory(nameof(SR.CatData))]
1051[SRCategory(nameof(SR.CatAppearance))]
1053[SRDescription(nameof(SR.ControlBackColorDescr))]
1094throw new ArgumentException(SR.TransparentBackColorNotAllowed);
1106[SRCategory(nameof(SR.CatPropertyChanged))]
1107[SRDescription(nameof(SR.ControlOnBackColorChangedDescr))]
1117[SRCategory(nameof(SR.CatAppearance))]
1120[SRDescription(nameof(SR.ControlBackgroundImageDescr))]
1136[SRCategory(nameof(SR.CatPropertyChanged))]
1137[SRDescription(nameof(SR.ControlOnBackgroundImageChangedDescr))]
1147[SRCategory(nameof(SR.CatAppearance))]
1150[SRDescription(nameof(SR.ControlBackgroundImageLayoutDescr))]
1180[SRCategory(nameof(SR.CatPropertyChanged))]
1181[SRDescription(nameof(SR.ControlOnBackgroundImageLayoutChangedDescr))]
1256[SRDescription(nameof(SR.ControlBindingContextDescr))]
1263[SRCategory(nameof(SR.CatPropertyChanged))]
1264[SRDescription(nameof(SR.ControlOnBindingContextChangedDescr))]
1277[SRDescription(nameof(SR.ControlBottomDescr))]
1278[SRCategory(nameof(SR.CatLayout))]
1288[SRDescription(nameof(SR.ControlBoundsDescr))]
1289[SRCategory(nameof(SR.CatLayout))]
1305[SRCategory(nameof(SR.CatFocus))]
1306[SRDescription(nameof(SR.ControlCanFocusDescr))]
1323[SRCategory(nameof(SR.CatFocus))]
1324[SRDescription(nameof(SR.ControlCanSelectDescr))]
1333[SRCategory(nameof(SR.CatFocus))]
1334[SRDescription(nameof(SR.ControlCaptureDescr))]
1359[SRCategory(nameof(SR.CatFocus))]
1361[SRDescription(nameof(SR.ControlCausesValidationDescr))]
1375[SRCategory(nameof(SR.CatPropertyChanged))]
1376[SRDescription(nameof(SR.ControlOnCausesValidationChangedDescr))]
1434[SRDescription(nameof(SR.ControlCheckForIllegalCrossThreadCalls))]
1444[SRCategory(nameof(SR.CatLayout))]
1445[SRDescription(nameof(SR.ControlClientRectangleDescr))]
1451[SRCategory(nameof(SR.CatLayout))]
1455[SRDescription(nameof(SR.ControlClientSizeDescr))]
1465[SRCategory(nameof(SR.CatPropertyChanged))]
1466[SRDescription(nameof(SR.ControlOnClientSizeChangedDescr))]
1479[SRDescription(nameof(SR.ControlCompanyNameDescr))]
1489[SRDescription(nameof(SR.ControlContainsFocusDescr))]
1509[SRCategory(nameof(SR.CatBehavior))]
1511[SRDescription(nameof(SR.ControlContextMenuDescr))]
1531[SRCategory(nameof(SR.CatPropertyChanged))]
1532[SRDescription(nameof(SR.ControlContextMenuStripChangedDescr))]
1544[SRDescription(nameof(SR.ControlControlsDescr))]
1553[SRDescription(nameof(SR.ControlCreatedDescr))]
1576throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32));
1731[SRCategory(nameof(SR.CatAppearance))]
1732[SRDescription(nameof(SR.ControlCursorDescr))]
1784[SRCategory(nameof(SR.CatPropertyChanged))]
1785[SRDescription(nameof(SR.ControlOnCursorChangedDescr))]
1796[SRCategory(nameof(SR.CatData))]
1797[SRDescription(nameof(SR.ControlBindingsDescr))]
1806throw new NotSupportedException(SR.BindingNotSupported);
1923[SRDescription(nameof(SR.ControlDisplayRectangleDescr))]
1934[SRDescription(nameof(SR.ControlDisposedDescr))]
1956[SRDescription(nameof(SR.ControlDisposingDescr))]
1965[SRCategory(nameof(SR.CatLayout))]
1969[SRDescription(nameof(SR.ControlDockDescr))]
1984[SRCategory(nameof(SR.CatPropertyChanged))]
1985[SRDescription(nameof(SR.ControlOnDockChangedDescr))]
1995[SRCategory(nameof(SR.CatBehavior))]
1996[SRDescription(nameof(SR.ControlDoubleBufferedDescr))]
2021[SRCategory(nameof(SR.CatBehavior))]
2024[SRDescription(nameof(SR.ControlEnabledDescr))]
2052[SRCategory(nameof(SR.CatPropertyChanged))]
2053[SRDescription(nameof(SR.ControlOnEnabledChangedDescr))]
2066[SRDescription(nameof(SR.ControlFocusedDescr))]
2074[SRCategory(nameof(SR.CatAppearance))]
2078[SRDescription(nameof(SR.ControlFontDescr))]
2176[SRCategory(nameof(SR.CatPropertyChanged))]
2177[SRDescription(nameof(SR.ControlOnFontChangedDescr))]
2270[SRCategory(nameof(SR.CatAppearance))]
2272[SRDescription(nameof(SR.ControlForeColorDescr))]
2315[SRCategory(nameof(SR.CatPropertyChanged))]
2316[SRDescription(nameof(SR.ControlOnForeColorChangedDescr))]
2388[SRDescription(nameof(SR.ControlHandleDescr))]
2395throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name));
2419[SRDescription(nameof(SR.ControlHasChildrenDescr))]
2425[SRCategory(nameof(SR.CatLayout))]
2429[SRDescription(nameof(SR.ControlHeightDescr))]
2489[SRDescription(nameof(SR.ControlHandleCreatedDescr))]
2563[SRDescription(nameof(SR.ControlInvokeRequiredDescr))]
2595[SRCategory(nameof(SR.CatBehavior))]
2599[SRDescription(nameof(SR.ControlIsAccessibleDescr))]
2640[SRCategory(nameof(SR.CatLayout))]
2644[SRDescription(nameof(SR.IsMirroredDescr))]
2677[SRCategory(nameof(SR.CatLayout))]
2681[SRDescription(nameof(SR.ControlLeftDescr))]
2691[SRCategory(nameof(SR.CatLayout))]
2693[SRDescription(nameof(SR.ControlLocationDescr))]
2700[SRCategory(nameof(SR.CatPropertyChanged))]
2701[SRDescription(nameof(SR.ControlOnLocationChangedDescr))]
2708[SRDescription(nameof(SR.ControlMarginDescr))]
2709[SRCategory(nameof(SR.CatLayout))]
2731[SRCategory(nameof(SR.CatLayout))]
2732[SRDescription(nameof(SR.ControlOnMarginChangedDescr))]
2739[SRCategory(nameof(SR.CatLayout))]
2741[SRDescription(nameof(SR.ControlMaximumSizeDescr))]
2762[SRCategory(nameof(SR.CatLayout))]
2764[SRDescription(nameof(SR.ControlMinimumSizeDescr))]
2885[SRCategory(nameof(SR.CatBehavior))]
2888[SRDescription(nameof(SR.ControlParentDescr))]
2922[SRDescription(nameof(SR.ControlProductNameDescr))]
2931[SRDescription(nameof(SR.ControlProductVersionDescr))]
2947[SRCategory(nameof(SR.CatBehavior))]
2951[SRDescription(nameof(SR.ControlRecreatingHandleDescr))]
2984[SRCategory(nameof(SR.CatLayout))]
2988[SRDescription(nameof(SR.ControlRegionDescr))]
3035[SRCategory(nameof(SR.CatPropertyChanged))]
3036[SRDescription(nameof(SR.ControlRegionChangedDescr))]
3101[SRDescription(nameof(SR.ControlResizeRedrawDescr))]
3111[SRCategory(nameof(SR.CatLayout))]
3115[SRDescription(nameof(SR.ControlRightDescr))]
3123[SRCategory(nameof(SR.CatAppearance))]
3126[SRDescription(nameof(SR.ControlRightToLeftDescr))]
3163[SRCategory(nameof(SR.CatPropertyChanged))]
3164[SRDescription(nameof(SR.ControlOnRightToLeftChangedDescr))]
3283[SRCategory(nameof(SR.CatLayout))]
3285[SRDescription(nameof(SR.ControlSizeDescr))]
3292[SRCategory(nameof(SR.CatPropertyChanged))]
3293[SRDescription(nameof(SR.ControlOnSizeChangedDescr))]
3303[SRCategory(nameof(SR.CatBehavior))]
3306[SRDescription(nameof(SR.ControlTabIndexDescr))]
3322[SRCategory(nameof(SR.CatPropertyChanged))]
3323[SRDescription(nameof(SR.ControlOnTabIndexChangedDescr))]
3334[SRCategory(nameof(SR.CatBehavior))]
3337[SRDescription(nameof(SR.ControlTabStopDescr))]
3369[SRCategory(nameof(SR.CatPropertyChanged))]
3370[SRDescription(nameof(SR.ControlOnTabStopChangedDescr))]
3377[SRCategory(nameof(SR.CatData))]
3380[SRDescription(nameof(SR.ControlTagDescr))]
3392[SRCategory(nameof(SR.CatAppearance))]
3396[SRDescription(nameof(SR.ControlTextDescr))]
3432[SRCategory(nameof(SR.CatPropertyChanged))]
3433[SRDescription(nameof(SR.ControlOnTextChangedDescr))]
3443[SRCategory(nameof(SR.CatLayout))]
3447[SRDescription(nameof(SR.ControlTopDescr))]
3459[SRCategory(nameof(SR.CatBehavior))]
3463[SRDescription(nameof(SR.ControlTopLevelControlDescr))]
3624[SRCategory(nameof(SR.CatAppearance))]
3625[SRDescription(nameof(SR.ControlUseWaitCursorDescr))]
3708[SRCategory(nameof(SR.CatBehavior))]
3710[SRDescription(nameof(SR.ControlVisibleDescr))]
3729[SRCategory(nameof(SR.CatPropertyChanged))]
3730[SRDescription(nameof(SR.ControlOnVisibleChangedDescr))]
3776throw new InvalidAsynchronousStateException(SR.ThreadNoLongerValid);
3800[SRCategory(nameof(SR.CatLayout))]
3804[SRDescription(nameof(SR.ControlWidthDescr))]
3832[SRCategory(nameof(SR.CatBehavior))]
3836[SRDescription(nameof(SR.ControlWindowTargetDescr))]
3883[SRCategory(nameof(SR.CatAction))]
3884[SRDescription(nameof(SR.ControlOnClickDescr))]
3894[SRCategory(nameof(SR.CatBehavior))]
3897[SRDescription(nameof(SR.ControlOnControlAddedDescr))]
3907[SRCategory(nameof(SR.CatBehavior))]
3910[SRDescription(nameof(SR.ControlOnControlRemovedDescr))]
3920[SRCategory(nameof(SR.CatData))]
3923[SRDescription(nameof(SR.ControlDataContextChangedDescr))]
3933[SRCategory(nameof(SR.CatAppearance))]
3936[SRDescription(nameof(SR.ControlVisualStylesModeChangedDescr))]
3943[SRCategory(nameof(SR.CatDragDrop))]
3944[SRDescription(nameof(SR.ControlOnDragDropDescr))]
3951[SRCategory(nameof(SR.CatDragDrop))]
3952[SRDescription(nameof(SR.ControlOnDragEnterDescr))]
3959[SRCategory(nameof(SR.CatDragDrop))]
3960[SRDescription(nameof(SR.ControlOnDragOverDescr))]
3967[SRCategory(nameof(SR.CatDragDrop))]
3968[SRDescription(nameof(SR.ControlOnDragLeaveDescr))]
3975[SRCategory(nameof(SR.CatDragDrop))]
3976[SRDescription(nameof(SR.ControlOnGiveFeedbackDescr))]
3986[SRCategory(nameof(SR.CatPrivate))]
3989[SRDescription(nameof(SR.ControlOnCreateHandleDescr))]
3999[SRCategory(nameof(SR.CatPrivate))]
4002[SRDescription(nameof(SR.ControlOnDestroyHandleDescr))]
4009[SRCategory(nameof(SR.CatBehavior))]
4010[SRDescription(nameof(SR.ControlOnHelpDescr))]
4017[SRCategory(nameof(SR.CatAppearance))]
4020[SRDescription(nameof(SR.ControlOnInvalidateDescr))]
4033[SRDescription(nameof(SR.ControlPaddingDescr))]
4034[SRCategory(nameof(SR.CatLayout))]
4063[SRCategory(nameof(SR.CatLayout))]
4064[SRDescription(nameof(SR.ControlOnPaddingChangedDescr))]
4071[SRCategory(nameof(SR.CatAppearance))]
4072[SRDescription(nameof(SR.ControlOnPaintDescr))]
4079[SRCategory(nameof(SR.CatDragDrop))]
4080[SRDescription(nameof(SR.ControlOnQueryContinueDragDescr))]
4087[SRCategory(nameof(SR.CatBehavior))]
4088[SRDescription(nameof(SR.ControlOnQueryAccessibilityHelpDescr))]
4098[SRCategory(nameof(SR.CatAction))]
4099[SRDescription(nameof(SR.ControlOnDoubleClickDescr))]
4109[SRCategory(nameof(SR.CatFocus))]
4110[SRDescription(nameof(SR.ControlOnEnterDescr))]
4120[SRCategory(nameof(SR.CatFocus))]
4121[SRDescription(nameof(SR.ControlOnGotFocusDescr))]
4133[SRCategory(nameof(SR.CatKey))]
4134[SRDescription(nameof(SR.ControlOnKeyDownDescr))]
4144[SRCategory(nameof(SR.CatKey))]
4145[SRDescription(nameof(SR.ControlOnKeyPressDescr))]
4155[SRCategory(nameof(SR.CatKey))]
4156[SRDescription(nameof(SR.ControlOnKeyUpDescr))]
4163[SRCategory(nameof(SR.CatLayout))]
4164[SRDescription(nameof(SR.ControlOnLayoutDescr))]
4174[SRCategory(nameof(SR.CatFocus))]
4175[SRDescription(nameof(SR.ControlOnLeaveDescr))]
4185[SRCategory(nameof(SR.CatFocus))]
4186[SRDescription(nameof(SR.ControlOnLostFocusDescr))]
4198[SRCategory(nameof(SR.CatAction))]
4199[SRDescription(nameof(SR.ControlOnMouseClickDescr))]
4209[SRCategory(nameof(SR.CatAction))]
4210[SRDescription(nameof(SR.ControlOnMouseDoubleClickDescr))]
4220[SRCategory(nameof(SR.CatAction))]
4221[SRDescription(nameof(SR.ControlOnMouseCaptureChangedDescr))]
4232[SRCategory(nameof(SR.CatMouse))]
4233[SRDescription(nameof(SR.ControlOnMouseDownDescr))]
4243[SRCategory(nameof(SR.CatMouse))]
4244[SRDescription(nameof(SR.ControlOnMouseEnterDescr))]
4254[SRCategory(nameof(SR.CatMouse))]
4255[SRDescription(nameof(SR.ControlOnMouseLeaveDescr))]
4267[SRCategory(nameof(SR.CatLayout))]
4268[SRDescription(nameof(SR.ControlOnDpiChangedBeforeParentDescr))]
4280[SRCategory(nameof(SR.CatLayout))]
4281[SRDescription(nameof(SR.ControlOnDpiChangedAfterParentDescr))]
4291[SRCategory(nameof(SR.CatMouse))]
4292[SRDescription(nameof(SR.ControlOnMouseHoverDescr))]
4302[SRCategory(nameof(SR.CatMouse))]
4303[SRDescription(nameof(SR.ControlOnMouseMoveDescr))]
4313[SRCategory(nameof(SR.CatMouse))]
4314[SRDescription(nameof(SR.ControlOnMouseUpDescr))]
4324[SRCategory(nameof(SR.CatMouse))]
4325[SRDescription(nameof(SR.ControlOnMouseWheelDescr))]
4337[SRCategory(nameof(SR.CatLayout))]
4338[SRDescription(nameof(SR.ControlOnMoveDescr))]
4348[SRCategory(nameof(SR.CatKey))]
4349[SRDescription(nameof(SR.PreviewKeyDownDescr))]
4359[SRCategory(nameof(SR.CatLayout))]
4360[SRDescription(nameof(SR.ControlOnResizeDescr))]
4368[SRCategory(nameof(SR.CatBehavior))]
4369[SRDescription(nameof(SR.ControlOnChangeUICuesDescr))]
4376[SRCategory(nameof(SR.CatBehavior))]
4377[SRDescription(nameof(SR.ControlOnStyleChangedDescr))]
4384[SRCategory(nameof(SR.CatBehavior))]
4385[SRDescription(nameof(SR.ControlOnSystemColorsChangedDescr))]
4402[SRCategory(nameof(SR.CatBehavior))]
4403[SRDescription(nameof(SR.ControlOnSystemVisualSettingsChangedDescr))]
4413[SRCategory(nameof(SR.CatFocus))]
4414[SRDescription(nameof(SR.ControlOnValidatingDescr))]
4424[SRCategory(nameof(SR.CatFocus))]
4425[SRDescription(nameof(SR.ControlOnValidatedDescr))]
4548[SRCategory(nameof(SR.CatPropertyChanged))]
4549[SRDescription(nameof(SR.ControlOnParentChangedDescr))]
4674throw new ArgumentException(SR.CircularOwner);
4687throw new ArgumentException(SR.CircularOwner);
5026throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose"));
5128throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
5270throw new ArgumentException(SR.ControlBadAsyncResult, nameof(asyncResult));
5919string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl));
5922string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent));
5929SR.ControlsCollectionShouldNotBeEmptyInGetNextControl,
6544throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly);
6728throw new InvalidOperationException(SR.ErrorNoMarshalingThread);
6979throw new NotSupportedException(SR.BindingNotSupported);
7743throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10145throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
10354throw new ThreadStateException(SR.ThreadMustBeSTA);
10380throw new InvalidOperationException(SR.DragDropRegFailed, e);
11096throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
11112throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
11165throw new InvalidOperationException(SR.TopLevelNotAllowedIfActiveX);
11179throw new ArgumentException(SR.TopLevelParentedControl, nameof(value));
12143throw new InvalidOperationException(SR.RichControlLresult, e);
13531throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (356)
16[SRDescription(nameof(SR.DescriptionDataGridView))]
462_horizScrollBar.AccessibleName = SR.DataGridView_AccHorizontalScrollBarAccName;
470_vertScrollBar.AccessibleName = SR.DataGridView_AccVerticalScrollBarAccName;
651[SRCategory(nameof(SR.CatBehavior))]
652[SRDescription(nameof(SR.DataGridView_AllowUserToAddRowsDescr))]
675[SRCategory(nameof(SR.CatPropertyChanged))]
676[SRDescription(nameof(SR.DataGridViewOnAllowUserToAddRowsChangedDescr))]
684[SRCategory(nameof(SR.CatBehavior))]
685[SRDescription(nameof(SR.DataGridView_AllowUserToDeleteRowsDescr))]
703[SRCategory(nameof(SR.CatPropertyChanged))]
704[SRDescription(nameof(SR.DataGridViewOnAllowUserToDeleteRowsChangedDescr))]
712[SRCategory(nameof(SR.CatBehavior))]
713[SRDescription(nameof(SR.DataGridView_AllowUserToOrderColumnsDescr))]
730[SRCategory(nameof(SR.CatPropertyChanged))]
731[SRDescription(nameof(SR.DataGridViewOnAllowUserToOrderColumnsChangedDescr))]
743[SRCategory(nameof(SR.CatBehavior))]
744[SRDescription(nameof(SR.DataGridView_AllowUserToResizeColumnsDescr))]
758[SRCategory(nameof(SR.CatPropertyChanged))]
759[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeColumnsChangedDescr))]
771[SRCategory(nameof(SR.CatBehavior))]
772[SRDescription(nameof(SR.DataGridView_AllowUserToResizeRowsDescr))]
786[SRCategory(nameof(SR.CatPropertyChanged))]
787[SRDescription(nameof(SR.DataGridViewOnAllowUserToResizeRowsChangedDescr))]
794[SRCategory(nameof(SR.CatAppearance))]
795[SRDescription(nameof(SR.DataGridView_AlternatingRowsDefaultCellStyleDescr))]
825[SRCategory(nameof(SR.CatPropertyChanged))]
826[SRDescription(nameof(SR.DataGridViewAlternatingRowsDefaultCellStyleChangedDescr))]
879[SRCategory(nameof(SR.CatLayout))]
880[SRDescription(nameof(SR.DataGridView_AutoSizeColumnsModeDescr))]
909throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeColumnsInvisibleColumnHeaders);
915throw new InvalidOperationException(SR.DataGridView_CannotAutoFillFrozenColumns);
933[SRCategory(nameof(SR.CatPropertyChanged))]
934[SRDescription(nameof(SR.DataGridViewAutoSizeColumnsModeChangedDescr))]
945[SRCategory(nameof(SR.CatLayout))]
946[SRDescription(nameof(SR.DataGridView_AutoSizeRowsModeDescr))]
969throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
981[SRCategory(nameof(SR.CatPropertyChanged))]
982[SRDescription(nameof(SR.DataGridViewAutoSizeRowsModeChangedDescr))]
1009[SRCategory(nameof(SR.CatAppearance))]
1010[SRDescription(nameof(SR.DataGridViewBackgroundColorDescr))]
1017throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor"));
1019throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor"));
1029[SRCategory(nameof(SR.CatPropertyChanged))]
1030[SRDescription(nameof(SR.DataGridViewBackgroundColorChangedDescr))]
1072[SRCategory(nameof(SR.CatAppearance))]
1073[SRDescription(nameof(SR.DataGridView_BorderStyleDescr))]
1102[SRCategory(nameof(SR.CatPropertyChanged))]
1103[SRDescription(nameof(SR.DataGridViewBorderStyleChangedDescr))]
1151[SRCategory(nameof(SR.CatAppearance))]
1152[SRDescription(nameof(SR.DataGridView_CellBorderStyleDescr))]
1245throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle"));
1322[SRCategory(nameof(SR.CatPropertyChanged))]
1323[SRDescription(nameof(SR.DataGridView_CellBorderStyleChangedDescr))]
1371[SRCategory(nameof(SR.CatBehavior))]
1372[SRDescription(nameof(SR.DataGridView_ClipboardCopyModeDescr))]
1397throw new InvalidOperationException(SR.DataGridView_CannotSetColumnCountOnDataBoundDataGridView);
1439[SRCategory(nameof(SR.CatAppearance))]
1440[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleDescr))]
1462throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle"));
1507[SRCategory(nameof(SR.CatPropertyChanged))]
1508[SRDescription(nameof(SR.DataGridView_ColumnHeadersBorderStyleChangedDescr))]
1515[SRCategory(nameof(SR.CatAppearance))]
1516[SRDescription(nameof(SR.DataGridView_ColumnHeadersDefaultCellStyleDescr))]
1568[SRCategory(nameof(SR.CatPropertyChanged))]
1569[SRDescription(nameof(SR.DataGridViewColumnHeadersDefaultCellStyleChangedDescr))]
1576[SRCategory(nameof(SR.CatAppearance))]
1578[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightDescr))]
1598[SRCategory(nameof(SR.CatPropertyChanged))]
1599[SRDescription(nameof(SR.DataGridViewColumnHeadersHeightChangedDescr))]
1615[SRCategory(nameof(SR.CatBehavior))]
1616[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeDescr))]
1633[SRCategory(nameof(SR.CatPropertyChanged))]
1634[SRDescription(nameof(SR.DataGridView_ColumnHeadersHeightSizeModeChangedDescr))]
1645[SRCategory(nameof(SR.CatAppearance))]
1647[SRDescription(nameof(SR.DataGridViewColumnHeadersVisibleDescr))]
1663throw new InvalidOperationException(SR.DataGridView_ColumnHeadersCannotBeInvisible);
1739throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1746throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
1751throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
1756throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1772throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
1886[SRCategory(nameof(SR.CatData))]
1888[SRDescription(nameof(SR.DataGridViewDataMemberDescr))]
1905[SRCategory(nameof(SR.CatPropertyChanged))]
1906[SRDescription(nameof(SR.DataGridViewDataMemberChangedDescr))]
1914[SRCategory(nameof(SR.CatData))]
1917[SRDescription(nameof(SR.DataGridViewDataSourceDescr))]
1962[SRCategory(nameof(SR.CatPropertyChanged))]
1963[SRDescription(nameof(SR.DataGridViewDataSourceChangedDescr))]
1970[SRCategory(nameof(SR.CatAppearance))]
1971[SRDescription(nameof(SR.DataGridView_DefaultCellStyleDescr))]
2082[SRCategory(nameof(SR.CatPropertyChanged))]
2083[SRDescription(nameof(SR.DataGridViewDefaultCellStyleChangedDescr))]
2153[SRCategory(nameof(SR.CatBehavior))]
2155[SRDescription(nameof(SR.DataGridView_EditModeDescr))]
2172[SRCategory(nameof(SR.CatPropertyChanged))]
2173[SRDescription(nameof(SR.DataGridView_EditModeChangedDescr))]
2246AccessibleName = SR.DataGridView_AccEditingPanelAccName
2267[SRCategory(nameof(SR.CatAppearance))]
2269[SRDescription(nameof(SR.DataGridView_EnableHeadersVisualStylesDescr))]
2305throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
2310throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeAHeaderOrSharedCell);
2320throw new InvalidOperationException(SR.DataGridView_FirstDisplayedCellCannotBeInvisible);
2461throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeInvisible);
2466throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingColumnCannotBeFrozen);
2477throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedColumns);
2484throw new InvalidOperationException(SR.DataGridView_FrozenColumnsPreventFirstDisplayedScrollingColumn);
2541throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeInvisible);
2546throw new InvalidOperationException(SR.DataGridView_FirstDisplayedScrollingRowCannotBeFrozen);
2557throw new InvalidOperationException(SR.DataGridView_NoRoomForDisplayedRows);
2564throw new InvalidOperationException(SR.DataGridView_FrozenRowsPreventFirstDisplayedScrollingRow);
2645[SRCategory(nameof(SR.CatAppearance))]
2646[SRDescription(nameof(SR.DataGridViewGridColorDescr))]
2653throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor)));
2655throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor)));
2665[SRCategory(nameof(SR.CatPropertyChanged))]
2666[SRDescription(nameof(SR.DataGridViewOnGridColorChangedDescr))]
2996[SRCategory(nameof(SR.CatBehavior))]
2998[SRDescription(nameof(SR.DataGridView_MultiSelectDescr))]
3013[SRCategory(nameof(SR.CatPropertyChanged))]
3014[SRDescription(nameof(SR.DataGridViewOnMultiSelectChangedDescr))]
3063[SRCategory(nameof(SR.CatBehavior))]
3064[SRDescription(nameof(SR.DataGridView_ReadOnlyDescr))]
3090throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
3137[SRCategory(nameof(SR.CatPropertyChanged))]
3138[SRDescription(nameof(SR.DataGridViewOnReadOnlyChangedDescr))]
3155throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3189throw new InvalidOperationException(SR.DataGridView_CannotSetRowCountOnDataBoundDataGridView);
3235[SRCategory(nameof(SR.CatAppearance))]
3236[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleDescr))]
3259throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle"));
3294[SRCategory(nameof(SR.CatPropertyChanged))]
3295[SRDescription(nameof(SR.DataGridView_RowHeadersBorderStyleChangedDescr))]
3302[SRCategory(nameof(SR.CatAppearance))]
3303[SRDescription(nameof(SR.DataGridView_RowHeadersDefaultCellStyleDescr))]
3333[SRCategory(nameof(SR.CatPropertyChanged))]
3334[SRDescription(nameof(SR.DataGridViewRowHeadersDefaultCellStyleChangedDescr))]
3345[SRCategory(nameof(SR.CatAppearance))]
3347[SRDescription(nameof(SR.DataGridViewRowHeadersVisibleDescr))]
3358throw new InvalidOperationException(SR.DataGridView_RowHeadersCannotBeInvisible);
3382[SRCategory(nameof(SR.CatLayout))]
3384[SRDescription(nameof(SR.DataGridView_RowHeadersWidthDescr))]
3436[SRCategory(nameof(SR.CatPropertyChanged))]
3437[SRDescription(nameof(SR.DataGridViewRowHeadersWidthChangedDescr))]
3453[SRCategory(nameof(SR.CatBehavior))]
3454[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeDescr))]
3476[SRCategory(nameof(SR.CatPropertyChanged))]
3477[SRDescription(nameof(SR.DataGridView_RowHeadersWidthSizeModeChangedDescr))]
3495[SRCategory(nameof(SR.CatAppearance))]
3496[SRDescription(nameof(SR.DataGridView_RowsDefaultCellStyleDescr))]
3526[SRCategory(nameof(SR.CatPropertyChanged))]
3527[SRDescription(nameof(SR.DataGridViewRowsDefaultCellStyleChangedDescr))]
3534[SRCategory(nameof(SR.CatAppearance))]
3536[SRDescription(nameof(SR.DataGridView_RowTemplateDescr))]
3554throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
3584[SRCategory(nameof(SR.CatLayout))]
3585[SRDescription(nameof(SR.DataGridView_ScrollBarsDescr))]
3607throw new InvalidOperationException(SR.DataGridView_CellChangeCannotBeCommittedOrAborted);
3744[SRCategory(nameof(SR.CatBehavior))]
3746[SRDescription(nameof(SR.DataGridView_SelectionModeDescr))]
3764throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString()));
3776[SRCategory(nameof(SR.CatAppearance))]
3777[SRDescription(nameof(SR.DataGridView_ShowCellErrorsDescr))]
3829[SRCategory(nameof(SR.CatAppearance))]
3830[SRDescription(nameof(SR.DataGridView_ShowCellToolTipsDescr))]
3881[SRCategory(nameof(SR.CatAppearance))]
3882[SRDescription(nameof(SR.DataGridView_ShowEditingIconDescr))]
3917[SRCategory(nameof(SR.CatAppearance))]
3918[SRDescription(nameof(SR.DataGridView_ShowRowErrorsDescr))]
3976[SRCategory(nameof(SR.CatBehavior))]
3979[SRDescription(nameof(SR.DataGridView_StandardTabDescr))]
4140[SRCategory(nameof(SR.CatBehavior))]
4143[SRDescription(nameof(SR.DataGridViewVirtualModeDescr))]
4163[SRCategory(nameof(SR.CatPropertyChanged))]
4164[SRDescription(nameof(SR.DataGridViewAutoSizeColumnModeChangedDescr))]
4171[SRCategory(nameof(SR.CatAction))]
4172[SRDescription(nameof(SR.DataGridView_CancelRowEditDescr))]
4179[SRCategory(nameof(SR.CatData))]
4180[SRDescription(nameof(SR.DataGridView_CellBeginEditDescr))]
4187[SRCategory(nameof(SR.CatMouse))]
4188[SRDescription(nameof(SR.DataGridView_CellClickDescr))]
4195[SRCategory(nameof(SR.CatMouse))]
4196[SRDescription(nameof(SR.DataGridView_CellContentClick))]
4203[SRCategory(nameof(SR.CatMouse))]
4204[SRDescription(nameof(SR.DataGridView_CellContentDoubleClick))]
4211[SRCategory(nameof(SR.CatAction))]
4212[SRDescription(nameof(SR.DataGridView_CellContextMenuStripChanged))]
4220[SRCategory(nameof(SR.CatBehavior))]
4221[SRDescription(nameof(SR.DataGridView_CellContextMenuStripNeeded))]
4229[SRCategory(nameof(SR.CatMouse))]
4230[SRDescription(nameof(SR.DataGridView_CellDoubleClickDescr))]
4237[SRCategory(nameof(SR.CatData))]
4238[SRDescription(nameof(SR.DataGridView_CellEndEditDescr))]
4245[SRCategory(nameof(SR.CatFocus))]
4246[SRDescription(nameof(SR.DataGridView_CellEnterDescr))]
4253[SRCategory(nameof(SR.CatPropertyChanged))]
4254[SRDescription(nameof(SR.DataGridView_CellErrorTextChangedDescr))]
4261[SRCategory(nameof(SR.CatData))]
4263[SRDescription(nameof(SR.DataGridView_CellErrorTextNeededDescr))]
4270[SRCategory(nameof(SR.CatDisplay))]
4271[SRDescription(nameof(SR.DataGridView_CellFormattingDescr))]
4278[SRCategory(nameof(SR.CatFocus))]
4279[SRDescription(nameof(SR.DataGridView_CellLeaveDescr))]
4286[SRCategory(nameof(SR.CatMouse))]
4287[SRDescription(nameof(SR.DataGridView_CellMouseClickDescr))]
4294[SRCategory(nameof(SR.CatMouse))]
4295[SRDescription(nameof(SR.DataGridView_CellMouseDoubleClickDescr))]
4302[SRCategory(nameof(SR.CatMouse))]
4303[SRDescription(nameof(SR.DataGridView_CellMouseDownDescr))]
4310[SRCategory(nameof(SR.CatMouse))]
4311[SRDescription(nameof(SR.DataGridView_CellMouseEnterDescr))]
4318[SRCategory(nameof(SR.CatMouse))]
4319[SRDescription(nameof(SR.DataGridView_CellMouseLeaveDescr))]
4326[SRCategory(nameof(SR.CatMouse))]
4327[SRDescription(nameof(SR.DataGridView_CellMouseMoveDescr))]
4334[SRCategory(nameof(SR.CatMouse))]
4335[SRDescription(nameof(SR.DataGridView_CellMouseUpDescr))]
4342[SRCategory(nameof(SR.CatDisplay))]
4343[SRDescription(nameof(SR.DataGridView_CellPaintingDescr))]
4350[SRCategory(nameof(SR.CatDisplay))]
4351[SRDescription(nameof(SR.DataGridView_CellParsingDescr))]
4358[SRCategory(nameof(SR.CatBehavior))]
4359[SRDescription(nameof(SR.DataGridView_CellStateChangedDescr))]
4366[SRCategory(nameof(SR.CatPropertyChanged))]
4367[SRDescription(nameof(SR.DataGridView_CellStyleChangedDescr))]
4374[SRCategory(nameof(SR.CatPropertyChanged))]
4375[SRDescription(nameof(SR.DataGridView_CellStyleContentChangedDescr))]
4382[SRCategory(nameof(SR.CatPropertyChanged))]
4383[SRDescription(nameof(SR.DataGridView_CellToolTipTextChangedDescr))]
4390[SRCategory(nameof(SR.CatBehavior))]
4391[SRDescription(nameof(SR.DataGridView_CellToolTipTextNeededDescr))]
4399[SRCategory(nameof(SR.CatFocus))]
4400[SRDescription(nameof(SR.DataGridView_CellValidatedDescr))]
4407[SRCategory(nameof(SR.CatFocus))]
4408[SRDescription(nameof(SR.DataGridView_CellValidatingDescr))]
4415[SRCategory(nameof(SR.CatAction))]
4416[SRDescription(nameof(SR.DataGridView_CellValueChangedDescr))]
4423[SRCategory(nameof(SR.CatData))]
4425[SRDescription(nameof(SR.DataGridView_CellValueNeededDescr))]
4432[SRCategory(nameof(SR.CatData))]
4434[SRDescription(nameof(SR.DataGridView_CellValuePushedDescr))]
4441[SRCategory(nameof(SR.CatAction))]
4442[SRDescription(nameof(SR.DataGridView_ColumnAddedDescr))]
4449[SRCategory(nameof(SR.CatPropertyChanged))]
4450[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripChangedDescr))]
4457[SRCategory(nameof(SR.CatPropertyChanged))]
4458[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameChangedDescr))]
4465[SRCategory(nameof(SR.CatPropertyChanged))]
4466[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleChangedDescr))]
4473[SRCategory(nameof(SR.CatPropertyChanged))]
4474[SRDescription(nameof(SR.DataGridView_ColumnDisplayIndexChangedDescr))]
4481[SRCategory(nameof(SR.CatMouse))]
4482[SRDescription(nameof(SR.DataGridView_ColumnDividerDoubleClickDescr))]
4489[SRCategory(nameof(SR.CatPropertyChanged))]
4490[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthChangedDescr))]
4497[SRCategory(nameof(SR.CatMouse))]
4498[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseClickDescr))]
4505[SRCategory(nameof(SR.CatMouse))]
4506[SRDescription(nameof(SR.DataGridView_ColumnHeaderMouseDoubleClickDescr))]
4513[SRCategory(nameof(SR.CatPropertyChanged))]
4514[SRDescription(nameof(SR.DataGridView_ColumnHeaderCellChangedDescr))]
4521[SRCategory(nameof(SR.CatPropertyChanged))]
4522[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthChangedDescr))]
4529[SRCategory(nameof(SR.CatPropertyChanged))]
4530[SRDescription(nameof(SR.DataGridView_ColumnNameChangedDescr))]
4537[SRCategory(nameof(SR.CatAction))]
4538[SRDescription(nameof(SR.DataGridView_ColumnRemovedDescr))]
4545[SRCategory(nameof(SR.CatBehavior))]
4546[SRDescription(nameof(SR.DataGridViewColumnSortModeChangedDescr))]
4553[SRCategory(nameof(SR.CatBehavior))]
4554[SRDescription(nameof(SR.DataGridView_ColumnStateChangedDescr))]
4561[SRCategory(nameof(SR.CatPropertyChanged))]
4562[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextChangedDescr))]
4569[SRCategory(nameof(SR.CatAction))]
4570[SRDescription(nameof(SR.DataGridView_ColumnWidthChangedDescr))]
4577[SRCategory(nameof(SR.CatAction))]
4578[SRDescription(nameof(SR.DataGridView_CurrentCellChangedDescr))]
4585[SRCategory(nameof(SR.CatBehavior))]
4587[SRDescription(nameof(SR.DataGridView_CurrentCellDirtyStateChangedDescr))]
4594[SRCategory(nameof(SR.CatData))]
4595[SRDescription(nameof(SR.DataGridView_DataBindingCompleteDescr))]
4602[SRCategory(nameof(SR.CatBehavior))]
4603[SRDescription(nameof(SR.DataGridView_DataErrorDescr))]
4610[SRCategory(nameof(SR.CatData))]
4612[SRDescription(nameof(SR.DataGridView_DefaultValuesNeededDescr))]
4619[SRCategory(nameof(SR.CatAction))]
4620[SRDescription(nameof(SR.DataGridView_EditingControlShowingDescr))]
4627[SRCategory(nameof(SR.CatData))]
4628[SRDescription(nameof(SR.DataGridView_NewRowNeededDescr))]
4635[SRCategory(nameof(SR.CatPropertyChanged))]
4636[SRDescription(nameof(SR.DataGridView_RowContextMenuStripChangedDescr))]
4643[SRCategory(nameof(SR.CatData))]
4645[SRDescription(nameof(SR.DataGridView_RowContextMenuStripNeededDescr))]
4652[SRCategory(nameof(SR.CatPropertyChanged))]
4653[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleChangedDescr))]
4660[SRCategory(nameof(SR.CatData))]
4662[SRDescription(nameof(SR.DataGridView_RowDirtyStateNeededDescr))]
4669[SRCategory(nameof(SR.CatMouse))]
4670[SRDescription(nameof(SR.DataGridView_RowDividerDoubleClickDescr))]
4677[SRCategory(nameof(SR.CatAppearance))]
4678[SRDescription(nameof(SR.DataGridView_RowDividerHeightChangedDescr))]
4685[SRCategory(nameof(SR.CatFocus))]
4686[SRDescription(nameof(SR.DataGridView_RowEnterDescr))]
4693[SRCategory(nameof(SR.CatPropertyChanged))]
4694[SRDescription(nameof(SR.DataGridView_RowErrorTextChangedDescr))]
4701[SRCategory(nameof(SR.CatData))]
4703[SRDescription(nameof(SR.DataGridView_RowErrorTextNeededDescr))]
4710[SRCategory(nameof(SR.CatMouse))]
4711[SRDescription(nameof(SR.DataGridView_RowHeaderMouseClickDescr))]
4718[SRCategory(nameof(SR.CatMouse))]
4719[SRDescription(nameof(SR.DataGridView_RowHeaderMouseDoubleClickDescr))]
4726[SRCategory(nameof(SR.CatPropertyChanged))]
4727[SRDescription(nameof(SR.DataGridView_RowHeaderCellChangedDescr))]
4734[SRCategory(nameof(SR.CatPropertyChanged))]
4735[SRDescription(nameof(SR.DataGridView_RowHeightChangedDescr))]
4742[SRCategory(nameof(SR.CatData))]
4744[SRDescription(nameof(SR.DataGridView_RowHeightInfoNeededDescr))]
4761[SRCategory(nameof(SR.CatData))]
4763[SRDescription(nameof(SR.DataGridView_RowHeightInfoPushedDescr))]
4770[SRCategory(nameof(SR.CatFocus))]
4771[SRDescription(nameof(SR.DataGridView_RowLeaveDescr))]
4778[SRCategory(nameof(SR.CatPropertyChanged))]
4779[SRDescription(nameof(SR.DataGridView_RowMinimumHeightChangedDescr))]
4786[SRCategory(nameof(SR.CatDisplay))]
4787[SRDescription(nameof(SR.DataGridView_RowPostPaintDescr))]
4804[SRCategory(nameof(SR.CatDisplay))]
4805[SRDescription(nameof(SR.DataGridView_RowPrePaintDescr))]
4822[SRCategory(nameof(SR.CatAction))]
4823[SRDescription(nameof(SR.DataGridView_RowsAddedDescr))]
4830[SRCategory(nameof(SR.CatAction))]
4831[SRDescription(nameof(SR.DataGridView_RowsRemovedDescr))]
4838[SRCategory(nameof(SR.CatBehavior))]
4839[SRDescription(nameof(SR.DataGridView_RowStateChangedDescr))]
4846[SRCategory(nameof(SR.CatBehavior))]
4848[SRDescription(nameof(SR.DataGridView_RowUnsharedDescr))]
4855[SRCategory(nameof(SR.CatFocus))]
4856[SRDescription(nameof(SR.DataGridView_RowValidatedDescr))]
4863[SRCategory(nameof(SR.CatFocus))]
4864[SRDescription(nameof(SR.DataGridView_RowValidatingDescr))]
4871[SRCategory(nameof(SR.CatAction))]
4872[SRDescription(nameof(SR.DataGridView_ScrollDescr))]
4879[SRCategory(nameof(SR.CatAction))]
4880[SRDescription(nameof(SR.DataGridView_SelectionChangedDescr))]
4887[SRCategory(nameof(SR.CatData))]
4889[SRDescription(nameof(SR.DataGridView_SortCompareDescr))]
4896[SRCategory(nameof(SR.CatData))]
4897[SRDescription(nameof(SR.DataGridView_SortedDescr))]
4912[SRCategory(nameof(SR.CatAction))]
4913[SRDescription(nameof(SR.DataGridView_UserAddedRowDescr))]
4920[SRCategory(nameof(SR.CatAction))]
4921[SRDescription(nameof(SR.DataGridView_UserDeletedRowDescr))]
4928[SRCategory(nameof(SR.CatAction))]
4929[SRDescription(nameof(SR.DataGridView_UserDeletingRowDescr))]
4943throw new InvalidOperationException(SR.DataGridViewBeginInit);
4974SR.DataGridView_SelectionModeReset,
4976SR.DataGridView_SelectionModeAndSortModeClash,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (100)
133SR.DataGridView_RowAddedNotification,
571throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
1740throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
1763throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeInvisibleColumnHeader);
2008throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowInvisibleRowHeader);
2031throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2177throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode"));
2409throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode"));
2415throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
2431throw new InvalidOperationException(SR.DataGridView_CannotAutoSizeRowsInvisibleRowHeader);
2610? throw new InvalidOperationException(SR.DataGridView_NoCurrentCell)
2617throw new InvalidOperationException(SR.DataGridView_BeginEditNotReentrant);
2698throw new InvalidCastException(SR.DataGridView_InvalidEditingControl);
2722EditingControl.AccessibleName = SR.DataGridView_AccEditingControlAccName;
4252throw new InvalidOperationException(SR.DataGridView_AColumnHasNoCellTemplate);
5084throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenColumn);
5098throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenColumn);
5223throw new InvalidOperationException(SR.DataGridView_CannotMoveNonFrozenColumn);
5242throw new InvalidOperationException(SR.DataGridView_CannotMoveFrozenColumn);
5290throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5303throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
5332throw new InvalidOperationException(SR.DataGridView_CannotAddFrozenRow);
5338throw new InvalidOperationException(SR.DataGridView_CannotAddNonFrozenRow);
6903throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
7179throw new NotSupportedException(SR.DataGridView_DisabledClipboardCopy);
9822throw new ArgumentException(SR.DataGridView_CellDoesNotBelongToDataGridView);
10797throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10804throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString()));
10817throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10826throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10837throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10849throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10916throw new InvalidOperationException(SR.DataGridView_AtLeastOneColumnIsNull);
10921throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
10927throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
10935SR.DataGridViewColumn_SortModeAndSelectionModeClash,
10950throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
10959throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
10969throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
10983throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalColumns);
11097throw new InvalidOperationException(SR.DataGridView_AtLeastOneRowIsNull);
11102throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
11107throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
11112throw new InvalidOperationException(SR.DataGridViewRowCollection_TooManyCells);
11124throw new InvalidOperationException(SR.DataGridView_CannotAddIdenticalRows);
11218?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column"));
11296throw new ArgumentException(SR.DataGridView_PreviousModesHasWrongLength);
11498throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13300throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13364throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13379throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13405throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13427throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
13477throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13553throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
13580throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
13587throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue));
13640throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14101throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14128throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14320throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14522throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14532throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
14676? SR.DataGridView_ErrorMessageText_NoException
14677: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception);
14683SR.DataGridView_ErrorMessageCaption,
14691MessageBox.Show(errorText, SR.DataGridView_ErrorMessageCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
14769throw new InvalidOperationException(SR.DataGridView_CannotMakeAutoSizedColumnVisible);
14821throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14852throw new InvalidOperationException(SR.DataGridView_CurrencyManagerRowCannotBeInvisible);
14883throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
14924throw new InvalidOperationException(SR.DataGridView_CommitFailedCannotCompleteOperation);
15433throw new InvalidOperationException(SR.DataGridView_ColumnAlreadyBelongsToDataGridView);
15441SR.DataGridViewColumn_SortModeAndSelectionModeClash,
15456throw new InvalidOperationException(SR.DataGridView_CannotAddAutoSizedColumn);
15465throw new InvalidOperationException(SR.DataGridView_CannotAddAutoFillColumn);
15490throw new InvalidOperationException(SR.DataGridView_CannotAddUntypedColumn);
16717throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17645throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17665throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17703throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17825throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
17909throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18342throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18426throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
18776throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
19062throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, "e.Row");
19771throw new InvalidOperationException(SR.DataGridView_CannotAlterAutoFillColumnParameter);
26838throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
26844throw new InvalidOperationException(SR.DataGridView_SetCurrentCellAddressCoreNotReentrant);
27528throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27533throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
27807throw new InvalidOperationException(SR.DataGridView_CurrentCellCannotBeInvisible);
28240throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView);
28245throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28257throw new InvalidOperationException(SR.DataGridView_OperationDisabledInVirtualMode);
28263throw new InvalidOperationException(SR.DataGridView_CannotUseAComparerToSortDataGridViewWhenDataBound);
28273throw new InvalidOperationException(SR.DataGridView_CannotSortDataBoundDataGridViewBoundToNonIBindingList);
28278throw new InvalidOperationException(SR.DataGridView_IBindingListNeedsToSupportSorting);
28283throw new ArgumentException(SR.DataGridView_ColumnNeedsToBeDataBoundWhenSortingDataBoundDataGridView, nameof(dataGridViewColumn));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (9)
125SR.DataGridView_WrongType,
278SR.DataGridView_WrongType,
296SR.DataGridView_WrongType,
351throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, MinBandThickness));
355throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumWidthSmallerThanOne, MinBandThickness));
407throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(ReadOnly)));
538throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Selected)));
558throw new InvalidOperationException(SR.DataGridViewBand_CannotSelect);
686throw new InvalidOperationException(SR.DataGridViewBand_NewRowCannotBeInvisible);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (18)
394throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
448throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
466throw new InvalidOperationException(SR.DataGridViewCell_CannotSetReadOnlyState);
550throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedCell);
559throw new InvalidOperationException(SR.DataGridViewCell_CannotSetSelectedState);
642[SRCategory(nameof(SR.CatData))]
645[SRDescription(nameof(SR.ControlTagDescr))]
1660exception = new FormatException(SR.DataGridViewCell_FormattedValueTypeNull);
1664exception = new FormatException(SR.DataGridViewCell_FormattedValueHasWrongType);
1686throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize));
1708throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize));
1782throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
1807throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
1875throw new InvalidOperationException(SR.DataGridView_CellNeedsDataGridViewForInheritedStyle);
2358throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedCell, "Size"));
3722throw new FormatException(SR.DataGridViewCell_FormattedValueTypeNull);
3727throw new FormatException(SR.DataGridViewCell_ValueTypeNull);
3733throw new ArgumentException(SR.DataGridViewCell_FormattedValueHasWrongType, nameof(formattedValue));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (39)
72[SRCategory(nameof(SR.CatLayout))]
74[SRDescription(nameof(SR.DataGridViewColumn_AutoSizeModeDescr))]
104throw new InvalidOperationException(SR.DataGridViewColumn_AutoSizeCriteriaCannotUseInvisibleHeaders);
112throw new InvalidOperationException(SR.DataGridViewColumn_FrozenColumnCannotAutoFill);
166[SRCategory(nameof(SR.CatBehavior))]
167[SRDescription(nameof(SR.DataGridView_ColumnContextMenuStripDescr))]
178[SRDescription(nameof(SR.DataGridView_ColumnDataPropertyNameDescr))]
179[SRCategory(nameof(SR.CatData))]
197[SRCategory(nameof(SR.CatAppearance))]
198[SRDescription(nameof(SR.DataGridView_ColumnDefaultCellStyleDescr))]
245throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue));
252throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexNegative);
257throw new ArgumentOutOfRangeException(nameof(value), value, SR.DataGridViewColumn_DisplayIndexExceedsColumnCount);
279throw new ArgumentOutOfRangeException(nameof(DisplayIndex), value, SR.DataGridViewColumn_DisplayIndexTooNegative);
324[SRCategory(nameof(SR.CatLayout))]
325[SRDescription(nameof(SR.DataGridView_ColumnDividerWidthDescr))]
332[SRCategory(nameof(SR.CatLayout))]
334[SRDescription(nameof(SR.DataGridViewColumn_FillWeightDescr))]
367[SRCategory(nameof(SR.CatLayout))]
368[SRDescription(nameof(SR.DataGridView_ColumnFrozenDescr))]
384[SRCategory(nameof(SR.CatAppearance))]
385[SRDescription(nameof(SR.DataGridView_ColumnHeaderTextDescr))]
608[SRCategory(nameof(SR.CatLayout))]
609[SRDescription(nameof(SR.DataGridView_ColumnMinimumWidthDescr))]
667[SRCategory(nameof(SR.CatBehavior))]
668[SRDescription(nameof(SR.DataGridView_ColumnReadOnlyDescr))]
681throw new InvalidOperationException(SR.DataGridView_ColumnBoundToAReadOnlyFieldMustRemainReadOnly);
688[SRCategory(nameof(SR.CatBehavior))]
689[SRDescription(nameof(SR.DataGridView_ColumnResizableDescr))]
701[SRCategory(nameof(SR.CatBehavior))]
702[SRDescription(nameof(SR.DataGridView_ColumnSortModeDescr))]
732throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, (value).ToString(), DataGridView.SelectionMode.ToString()));
759[SRCategory(nameof(SR.CatAppearance))]
760[SRDescription(nameof(SR.DataGridView_ColumnToolTipTextDescr))]
797[SRCategory(nameof(SR.CatAppearance))]
798[SRDescription(nameof(SR.DataGridView_ColumnVisibleDescr))]
805[SRCategory(nameof(SR.CatLayout))]
807[SRDescription(nameof(SR.DataGridView_ColumnWidthDescr))]
892throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (23)
148throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
155throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
181throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
188throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
271throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
278throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
869throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
876throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
993throw new ArgumentException(SR.DataGridView_ColumnDoesNotBelongToDataGridView, nameof(dataGridViewColumn));
1028throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
1038throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1045throw new InvalidOperationException(SR.DataGridView_CannotAlterDisplayIndexWithinAdjustments);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (12)
138throw new ArgumentException(SR.BadDataSourceForComplexBinding);
323throw new ArgumentOutOfRangeException(nameof(DropDownWidth), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1));
386string.Format(SR.DataGridViewComboBoxCell_MaxDropDownItemsOutOfRange, 1, 100));
428throw new ArgumentException(SR.ComboBoxSortWithDataSource);
575throw new ArgumentException(SR.DataSourceLocksItems);
816? SR.DefaultDataGridViewComboBoxCellToolTipText
931new FormatException(SR.DataGridViewComboBoxCell_InvalidValue),
968new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue),
1003new ArgumentException(SR.DataGridViewComboBoxCell_InvalidValue),
1359throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, displayMember));
1390throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, valueMember));
2411throw new FormatException(string.Format(CultureInfo.CurrentCulture, SR.Formatter_CantConvert, value, DisplayType));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (5)
121set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "ReadOnly"));
152set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "Selected"));
236throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
241throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
367throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (40)
56[SRCategory(nameof(SR.CatBehavior))]
57[SRDescription(nameof(SR.DataGridView_RowContextMenuStripDescr))]
88[SRCategory(nameof(SR.CatAppearance))]
89[SRDescription(nameof(SR.DataGridView_RowDefaultCellStyleDescr))]
98throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DefaultCellStyle)));
112throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Displayed)));
121[SRCategory(nameof(SR.CatAppearance))]
122[SRDescription(nameof(SR.DataGridView_RowDividerHeightDescr))]
130throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DividerHeight)));
139[SRCategory(nameof(SR.CatAppearance))]
140[SRDescription(nameof(SR.DataGridView_RowErrorTextDescr))]
183throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Frozen)));
192throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Frozen)));
211[SRCategory(nameof(SR.CatAppearance))]
212[SRDescription(nameof(SR.DataGridView_RowHeightDescr))]
220throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Height)));
233throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(InheritedStyle)));
260throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(MinimumHeight)));
270[SRCategory(nameof(SR.CatBehavior))]
271[SRDescription(nameof(SR.DataGridView_RowReadOnlyDescr))]
278throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(ReadOnly)));
287[SRCategory(nameof(SR.CatBehavior))]
288[SRDescription(nameof(SR.DataGridView_RowResizableDescr))]
295throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Resizable)));
309throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Selected)));
323throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(State)));
337throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Visible)));
346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Visible)));
1103throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
1114throw new InvalidOperationException(SR.DataGridView_AColumnHasNoCellTemplate);
1185throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1211throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
1238throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
1379throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
1420throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1496throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1503throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, "paintParts"));
1689throw new InvalidOperationException(SR.DataGridView_RowDoesNotYetBelongToDataGridView);
1780throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
1785throw new InvalidOperationException(SR.DataGridView_InvalidOperationOnSharedRow);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (80)
179throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
184throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
196throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
201throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
279throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
284throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
289throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
302throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
307throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
312throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
325throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
330throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
335throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
340throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
345throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
388throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
393throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
398throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
403throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
464throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
469throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
495throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
535throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
540throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
568throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
573throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
720throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
725throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
738throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
789throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
800throw new InvalidOperationException(SR.DataGridViewRowCollection_CantClearRowCollectionWithWrongSource);
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter)));
1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
1331throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange);
1359throw new InvalidOperationException(SR.DataGridView_InvalidOperationInVirtualMode);
1364throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1379throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1384throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1394throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1399throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1404throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
1409throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1414throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1419throw new InvalidOperationException(SR.DataGridViewRowCollection_RowTemplateTooManyCells);
1426throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1457throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_RowIndexOutOfRange);
1464throw new InvalidOperationException(SR.DataGridView_RowAlreadyBelongsToDataGridView);
1471throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1476throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1481throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
1486throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotAddOrInsertSelectedRow);
1508throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
1513throw new ArgumentException(SR.DataGridViewRowCollection_TooManyCells, nameof(dataGridViewRow));
1569throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1574throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1586throw new ArgumentOutOfRangeException(nameof(indexSource), SR.DataGridViewRowCollection_IndexSourceOutOfRange);
1591throw new ArgumentOutOfRangeException(nameof(indexDestination), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1596throw new ArgumentOutOfRangeException(nameof(count), SR.DataGridViewRowCollection_CountOutOfRange);
1603throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1761throw new ArgumentOutOfRangeException(nameof(rowIndex), SR.DataGridViewRowCollection_IndexDestinationOutOfRange);
1766throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
1773throw new InvalidOperationException(SR.DataGridViewRowCollection_NoInsertionAfterNewRow);
1778throw new InvalidOperationException(SR.DataGridViewRowCollection_AddUnboundRow);
1783throw new InvalidOperationException(SR.DataGridViewRowCollection_NoColumns);
2148throw new ArgumentException(SR.DataGridView_RowDoesNotBelongToDataGridView, nameof(dataGridViewRow));
2153throw new ArgumentException(SR.DataGridView_RowMustBeUnshared, nameof(dataGridViewRow));
2165throw new ArgumentOutOfRangeException(nameof(index), SR.DataGridViewRowCollection_RowIndexOutOfRange);
2171throw new InvalidOperationException(SR.DataGridViewRowCollection_CannotDeleteNewRow);
2176throw new InvalidOperationException(SR.DataGridView_ForbiddenOperationInEventHandler);
2198throw new InvalidOperationException(SR.DataGridViewRowCollection_CantRemoveRowsWithWrongSource);
System\Windows\Forms\Controls\ListView\ListView.cs (154)
30[SRDescription(nameof(SR.DescriptionListView))]
241[SRCategory(nameof(SR.CatBehavior))]
243[SRDescription(nameof(SR.ListViewActivationDescr))]
258throw new ArgumentException(SR.ListViewActivationMustBeOnWhenHotTrackingIsOn, nameof(value));
273[SRCategory(nameof(SR.CatBehavior))]
276[SRDescription(nameof(SR.ListViewAlignmentDescr))]
301[SRCategory(nameof(SR.CatBehavior))]
303[SRDescription(nameof(SR.ListViewAllowColumnReorderDescr))]
326[SRCategory(nameof(SR.CatBehavior))]
328[SRDescription(nameof(SR.ListViewAutoArrangeDescr))]
375[SRCategory(nameof(SR.CatAppearance))]
377[SRDescription(nameof(SR.ListViewBackgroundImageTiledDescr))]
414[SRCategory(nameof(SR.CatAppearance))]
417[SRDescription(nameof(SR.borderStyleDescr))]
437[SRCategory(nameof(SR.CatAppearance))]
439[SRDescription(nameof(SR.ListViewCheckBoxesDescr))]
455throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView);
500throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView);
609[SRCategory(nameof(SR.CatBehavior))]
612[SRDescription(nameof(SR.ListViewColumnsDescr))]
739_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1"))
800[SRCategory(nameof(SR.CatAppearance))]
803[SRDescription(nameof(SR.ListViewFocusedItemDescr))]
871[SRCategory(nameof(SR.CatAppearance))]
873[SRDescription(nameof(SR.ListViewFullRowSelectDescr))]
894[SRCategory(nameof(SR.CatAppearance))]
896[SRDescription(nameof(SR.ListViewGridLinesDescr))]
932[SRCategory(nameof(SR.CatBehavior))]
934[SRDescription(nameof(SR.ListViewGroupImageListDescr))]
965[SRCategory(nameof(SR.CatBehavior))]
969[SRDescription(nameof(SR.ListViewGroupsDescr))]
993[SRCategory(nameof(SR.CatBehavior))]
995[SRDescription(nameof(SR.ListViewHeaderStyleDescr))]
1028[SRCategory(nameof(SR.CatBehavior))]
1030[SRDescription(nameof(SR.ListViewHideSelectionDescr))]
1048[SRCategory(nameof(SR.CatBehavior))]
1050[SRDescription(nameof(SR.ListViewHotTrackingDescr))]
1076[SRCategory(nameof(SR.CatBehavior))]
1078[SRDescription(nameof(SR.ListViewHoverSelectDescr))]
1092throw new ArgumentException(SR.ListViewHoverMustBeOnWhenHotTrackingIsOn, nameof(value));
1111[SRDescription(nameof(SR.ListViewInsertionMarkDescr))]
1134[SRCategory(nameof(SR.CatBehavior))]
1138[SRDescription(nameof(SR.ListViewItemsDescr))]
1151[SRCategory(nameof(SR.CatBehavior))]
1153[SRDescription(nameof(SR.ListViewLabelEditDescr))]
1173[SRCategory(nameof(SR.CatBehavior))]
1176[SRDescription(nameof(SR.ListViewLabelWrapDescr))]
1196[SRCategory(nameof(SR.CatBehavior))]
1198[SRDescription(nameof(SR.ListViewLargeImageListDescr))]
1249[SRCategory(nameof(SR.CatBehavior))]
1252[SRDescription(nameof(SR.ListViewItemSorterDescr))]
1276[SRCategory(nameof(SR.CatBehavior))]
1278[SRDescription(nameof(SR.ListViewMultiSelectDescr))]
1299[SRCategory(nameof(SR.CatBehavior))]
1301[SRDescription(nameof(SR.ListViewOwnerDrawDescr))]
1324[SRCategory(nameof(SR.CatAppearance))]
1327[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1348[SRCategory(nameof(SR.CatPropertyChanged))]
1349[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1359[SRCategory(nameof(SR.CatBehavior))]
1361[SRDescription(nameof(SR.ListViewScrollableDescr))]
1396[SRCategory(nameof(SR.CatAppearance))]
1399[SRDescription(nameof(SR.ListViewSelectedItemsDescr))]
1410[SRCategory(nameof(SR.CatBehavior))]
1412[SRDescription(nameof(SR.ListViewShowGroupsDescr))]
1435[SRCategory(nameof(SR.CatBehavior))]
1437[SRDescription(nameof(SR.ListViewSmallImageListDescr))]
1476[SRCategory(nameof(SR.CatBehavior))]
1478[SRDescription(nameof(SR.ListViewShowItemToolTipsDescr))]
1495[SRCategory(nameof(SR.CatBehavior))]
1497[SRDescription(nameof(SR.ListViewSortingDescr))]
1541[SRCategory(nameof(SR.CatBehavior))]
1543[SRDescription(nameof(SR.ListViewStateImageListDescr))]
1638[SRCategory(nameof(SR.CatAppearance))]
1640[SRDescription(nameof(SR.ListViewTileSizeDescr))]
1674throw new ArgumentOutOfRangeException(nameof(TileSize), SR.ListViewTileSizeMustBePositive);
1706[SRCategory(nameof(SR.CatAppearance))]
1709[SRDescription(nameof(SR.ListViewTopItemDescr))]
1716throw new InvalidOperationException(SR.ListViewGetTopItem);
1731throw new InvalidOperationException(SR.ListViewSetTopItem);
1800[SRCategory(nameof(SR.CatAppearance))]
1802[SRDescription(nameof(SR.ListViewViewDescr))]
1813throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes);
1823throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode);
1858[SRCategory(nameof(SR.CatBehavior))]
1861[SRDescription(nameof(SR.ListViewVirtualListSizeDescr))]
1872throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value));
1908[SRCategory(nameof(SR.CatBehavior))]
1911[SRDescription(nameof(SR.ListViewVirtualModeDescr))]
1927throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoItems);
1932throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoCheckedItems);
1937throw new InvalidOperationException(SR.ListViewVirtualListViewRequiresNoSelectedItems);
1943throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
1952[SRCategory(nameof(SR.CatBehavior))]
1953[SRDescription(nameof(SR.ListViewAfterLabelEditDescr))]
1960[SRCategory(nameof(SR.CatBehavior))]
1961[SRDescription(nameof(SR.ListViewBeforeLabelEditDescr))]
1968[SRCategory(nameof(SR.CatAction))]
1969[SRDescription(nameof(SR.ListViewCacheVirtualItemsEventDescr))]
1976[SRCategory(nameof(SR.CatAction))]
1977[SRDescription(nameof(SR.ListViewColumnClickDescr))]
1987[SRCategory(nameof(SR.CatAction))]
1988[SRDescription(nameof(SR.ListViewGroupTaskLinkClickDescr))]
1998[SRCategory(nameof(SR.CatPropertyChanged))]
1999[SRDescription(nameof(SR.ListViewColumnReorderedDscr))]
2009[SRCategory(nameof(SR.CatPropertyChanged))]
2010[SRDescription(nameof(SR.ListViewColumnWidthChangedDscr))]
2020[SRCategory(nameof(SR.CatPropertyChanged))]
2021[SRDescription(nameof(SR.ListViewColumnWidthChangingDscr))]
2031[SRCategory(nameof(SR.CatBehavior))]
2032[SRDescription(nameof(SR.ListViewDrawColumnHeaderEventDescr))]
2042[SRCategory(nameof(SR.CatBehavior))]
2043[SRDescription(nameof(SR.ListViewDrawItemEventDescr))]
2053[SRCategory(nameof(SR.CatBehavior))]
2054[SRDescription(nameof(SR.ListViewDrawSubItemEventDescr))]
2061[SRCategory(nameof(SR.CatAction))]
2062[SRDescription(nameof(SR.ListViewItemClickDescr))]
2069[SRCategory(nameof(SR.CatBehavior))]
2070[SRDescription(nameof(SR.CheckedListBoxItemCheckDescr))]
2077[SRCategory(nameof(SR.CatBehavior))]
2078[SRDescription(nameof(SR.ListViewItemCheckedDescr))]
2085[SRCategory(nameof(SR.CatAction))]
2086[SRDescription(nameof(SR.ListViewItemDragDescr))]
2093[SRCategory(nameof(SR.CatAction))]
2094[SRDescription(nameof(SR.ListViewItemMouseHoverDescr))]
2101[SRCategory(nameof(SR.CatBehavior))]
2102[SRDescription(nameof(SR.ListViewItemSelectionChangedDescr))]
2112[SRCategory(nameof(SR.CatBehavior))]
2113[SRDescription(nameof(SR.ListViewGroupCollapsedStateChangedDescr))]
2148[SRCategory(nameof(SR.CatAction))]
2149[SRDescription(nameof(SR.ListViewRetrieveVirtualItemEventDescr))]
2156[SRCategory(nameof(SR.CatAction))]
2157[SRDescription(nameof(SR.ListViewSearchForVirtualItemDescr))]
2164[SRCategory(nameof(SR.CatBehavior))]
2165[SRDescription(nameof(SR.ListViewSelectedIndexChangedDescr))]
2172[SRCategory(nameof(SR.CatBehavior))]
2173[SRDescription(nameof(SR.ListViewVirtualItemsSelectionRangeChangedDescr))]
2266throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
3226throw new InvalidOperationException(SR.ListViewFindNearestItemWorksOnlyInIconView);
3231throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection));
3603string.Format(SR.InvalidArgument, nameof(index), index))
3680string.Format(SR.InvalidArgument, nameof(itemIndex), itemIndex))
3826throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch));
3837throw new InvalidOperationException(SR.ListViewAddColumnFailed);
4022throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items));
4049throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items));
4215throw new InvalidOperationException(SR.ListViewAddItemFailed);
4432? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header)
4433: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
5051throw new ArgumentException(SR.ListViewStartIndexCannotBeLargerThanEndIndex);
5297throw new InvalidOperationException(SR.ListViewColumnInfoSet);
5592throw new InvalidOperationException(SR.ListViewSortNotAllowedInVirtualListView);
6830ListViewItem lvItem = rVI.Item ?? throw new InvalidOperationException(SR.ListViewVirtualItemRequired);
6844throw new InvalidOperationException(SR.ListViewVirtualModeCantAccessSubItem);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (57)
59[SRDescription(nameof(SR.DescriptionMonthCalendar))]
165[SRDescription(nameof(SR.MonthCalendarAnnuallyBoldedDatesDescr))]
191[SRDescription(nameof(SR.MonthCalendarMonthBackColorDescr))]
264[SRCategory(nameof(SR.CatAppearance))]
266[SRDescription(nameof(SR.MonthCalendarDimensionsDescr))]
367[SRCategory(nameof(SR.CatBehavior))]
370[SRDescription(nameof(SR.MonthCalendarFirstDayOfWeekDescr))]
407[SRDescription(nameof(SR.MonthCalendarForeColorDescr))]
443[SRCategory(nameof(SR.CatBehavior))]
444[SRDescription(nameof(SR.MonthCalendarMaxDateDescr))]
467[SRCategory(nameof(SR.CatBehavior))]
469[SRDescription(nameof(SR.MonthCalendarMaxSelectionCountDescr))]
486throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
499[SRCategory(nameof(SR.CatBehavior))]
500[SRDescription(nameof(SR.MonthCalendarMinDateDescr))]
523[SRDescription(nameof(SR.MonthCalendarMonthlyBoldedDatesDescr))]
572[SRCategory(nameof(SR.CatAppearance))]
575[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
600[SRCategory(nameof(SR.CatBehavior))]
602[SRDescription(nameof(SR.MonthCalendarScrollChangeDescr))]
628[SRCategory(nameof(SR.CatBehavior))]
631[SRDescription(nameof(SR.MonthCalendarSelectionEndDescr))]
665[SRCategory(nameof(SR.CatBehavior))]
668[SRDescription(nameof(SR.MonthCalendarSelectionStartDescr))]
702[SRCategory(nameof(SR.CatBehavior))]
703[SRDescription(nameof(SR.MonthCalendarSelectionRangeDescr))]
715[SRCategory(nameof(SR.CatBehavior))]
717[SRDescription(nameof(SR.MonthCalendarShowTodayDescr))]
738[SRCategory(nameof(SR.CatBehavior))]
740[SRDescription(nameof(SR.MonthCalendarShowTodayCircleDescr))]
760[SRCategory(nameof(SR.CatBehavior))]
763[SRDescription(nameof(SR.MonthCalendarShowWeekNumbersDescr))]
787[SRCategory(nameof(SR.CatAppearance))]
790[SRDescription(nameof(SR.MonthCalendarSingleMonthSizeDescr))]
800throw new InvalidOperationException(SR.InvalidSingleMonthSize);
848[SRCategory(nameof(SR.CatBehavior))]
849[SRDescription(nameof(SR.MonthCalendarTodayDateDescr))]
892[SRCategory(nameof(SR.CatBehavior))]
895[SRDescription(nameof(SR.MonthCalendarTodayDateSetDescr))]
901[SRCategory(nameof(SR.CatAppearance))]
902[SRDescription(nameof(SR.MonthCalendarTitleBackColorDescr))]
910throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
922[SRCategory(nameof(SR.CatAppearance))]
923[SRDescription(nameof(SR.MonthCalendarTitleForeColorDescr))]
931throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
943[SRCategory(nameof(SR.CatAppearance))]
944[SRDescription(nameof(SR.MonthCalendarTrailingForeColorDescr))]
952throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
1006[SRCategory(nameof(SR.CatAction))]
1007[SRDescription(nameof(SR.MonthCalendarOnDateChangedDescr))]
1014[SRCategory(nameof(SR.CatAction))]
1015[SRDescription(nameof(SR.MonthCalendarOnDateSelectedDescr))]
1060[SRCategory(nameof(SR.CatPropertyChanged))]
1061[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
1743string.Format(SR.MonthCalendarRange, minDate.ToShortDateString(), maxDate.ToShortDateString()));
1757throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
1762throw 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))]
401[SRDescription(nameof(SR.PropertyGridCanShowCommandsDesc))]
407[SRCategory(nameof(SR.CatAppearance))]
408[SRDescription(nameof(SR.PropertyGridCategoryForeColorDesc))]
426[SRCategory(nameof(SR.CatAppearance))]
427[SRDescription(nameof(SR.PropertyGridCommandsBackColorDesc))]
441[SRCategory(nameof(SR.CatAppearance))]
442[SRDescription(nameof(SR.PropertyGridCommandsForeColorDesc))]
456[SRCategory(nameof(SR.CatAppearance))]
457[SRDescription(nameof(SR.PropertyGridCommandsLinkColorDesc))]
467[SRCategory(nameof(SR.CatAppearance))]
468[SRDescription(nameof(SR.PropertyGridCommandsActiveLinkColorDesc))]
478[SRCategory(nameof(SR.CatAppearance))]
479[SRDescription(nameof(SR.PropertyGridCommandsDisabledLinkColorDesc))]
489[SRCategory(nameof(SR.CatAppearance))]
490[SRDescription(nameof(SR.PropertyGridCommandsBorderColorDesc))]
509[SRCategory(nameof(SR.CatAppearance))]
511[SRDescription(nameof(SR.PropertyGridCommandsVisibleIfAvailable))]
628[SRCategory(nameof(SR.CatAppearance))]
629[SRDescription(nameof(SR.PropertyGridHelpBackColorDesc))]
640[SRCategory(nameof(SR.CatAppearance))]
641[SRDescription(nameof(SR.PropertyGridHelpForeColorDesc))]
652[SRCategory(nameof(SR.CatAppearance))]
653[SRDescription(nameof(SR.PropertyGridHelpBorderColorDesc))]
664[SRCategory(nameof(SR.CatAppearance))]
667[SRDescription(nameof(SR.PropertyGridHelpVisibleDesc))]
700[SRCategory(nameof(SR.CatAppearance))]
701[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusBackColorDesc))]
719[SRCategory(nameof(SR.CatAppearance))]
720[SRDescription(nameof(SR.PropertyGridSelectedItemWithFocusForeColorDesc))]
738[SRCategory(nameof(SR.CatAppearance))]
739[SRDescription(nameof(SR.PropertyGridDisabledItemForeColorDesc))]
754[SRCategory(nameof(SR.CatAppearance))]
755[SRDescription(nameof(SR.PropertyGridCategorySplitterColorDesc))]
774[SRCategory(nameof(SR.CatAppearance))]
775[SRDescription(nameof(SR.PropertyGridCanShowVisualStyleGlyphsDesc))]
790[SRCategory(nameof(SR.CatAppearance))]
791[SRDescription(nameof(SR.PropertyGridLineColorDesc))]
871[SRCategory(nameof(SR.CatAppearance))]
873[SRDescription(nameof(SR.PropertyGridPropertySortDesc))]
929[SRDescription(nameof(SR.PropertyGridSelectedObjectDesc))]
930[SRCategory(nameof(SR.CatBehavior))]
967throw new ArgumentException(string.Format(SR.PropertyGridSetNull, count, value.Length));
1231[SRCategory(nameof(SR.CatAppearance))]
1232[SRDescription(nameof(SR.PropertyGridLargeButtonsDesc))]
1279[SRCategory(nameof(SR.CatAppearance))]
1281[SRDescription(nameof(SR.PropertyGridToolbarVisibleDesc))]
1310[SRCategory(nameof(SR.CatAppearance))]
1311[SRDescription(nameof(SR.PropertyGridViewBackColorDesc))]
1323[SRCategory(nameof(SR.CatAppearance))]
1324[SRDescription(nameof(SR.PropertyGridViewForeColorDesc))]
1339[SRCategory(nameof(SR.CatAppearance))]
1340[SRDescription(nameof(SR.PropertyGridViewBorderColorDesc))]
1444[SRCategory(nameof(SR.CatPropertyChanged))]
1445[SRDescription(nameof(SR.PropertyGridPropertyValueChangedDescr))]
1461[SRCategory(nameof(SR.CatPropertyChanged))]
1462[SRDescription(nameof(SR.PropertyGridPropertyTabchangedDescr))]
1472[SRCategory(nameof(SR.CatPropertyChanged))]
1473[SRDescription(nameof(SR.PropertyGridPropertySortChangedDescr))]
1483[SRCategory(nameof(SR.CatPropertyChanged))]
1484[SRDescription(nameof(SR.PropertyGridSelectedGridItemChangedDescr))]
1491[SRCategory(nameof(SR.CatPropertyChanged))]
1492[SRDescription(nameof(SR.PropertyGridSelectedObjectsChangedDescr))]
1628throw new ArgumentException(SR.PropertyGridTabScope, nameof(tabScope));
1738throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName));
1743throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName));
3015string.Format(SR.PropertyGridPropertyValueSelectedFormat, changedItem.Value));
3233string error = SR.ErrorPropertyPageFailed;
3243SR.PropertyGridTitle,
3476throw new ArgumentException(SR.PropertyGridTabScope);
3579throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3622throw new ArgumentException(SR.PropertyGridRemoveStaticTabs);
3927SR.PBRSToolTipAlphabetic,
3932SR.PBRSToolTipCategorized,
4004SR.PBRSToolTipPropertyPages,
4248[SRCategory(nameof(SR.CatBehavior))]
4249[SRDescription(nameof(SR.UseCompatibleTextRenderingDescr))]
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
129SR.PBRSErrorTitle,
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (32)
23[SRDescription(nameof(SR.DescriptionTrackBar))]
66[SRCategory(nameof(SR.CatBehavior))]
68[SRDescription(nameof(SR.TrackBarAutoSizeDescr))]
101[SRCategory(nameof(SR.CatPropertyChanged))]
102[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
272[SRCategory(nameof(SR.CatBehavior))]
274[SRDescription(nameof(SR.TrackBarLargeChangeDescr))]
282throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value));
301[SRCategory(nameof(SR.CatBehavior))]
304[SRDescription(nameof(SR.TrackBarMaximumDescr))]
327[SRCategory(nameof(SR.CatBehavior))]
330[SRDescription(nameof(SR.TrackBarMinimumDescr))]
355[SRCategory(nameof(SR.CatAppearance))]
358[SRDescription(nameof(SR.TrackBarOrientationDescr))]
447[SRCategory(nameof(SR.CatAppearance))]
450[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
475[SRCategory(nameof(SR.CatBehavior))]
477[SRDescription(nameof(SR.TrackBarSmallChangeDescr))]
485throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
527[SRCategory(nameof(SR.CatAppearance))]
529[SRDescription(nameof(SR.TrackBarTickStyleDescr))]
557[SRCategory(nameof(SR.CatAppearance))]
559[SRDescription(nameof(SR.TrackBarTickFrequencyDescr))]
599[SRCategory(nameof(SR.CatBehavior))]
602[SRDescription(nameof(SR.TrackBarValueDescr))]
619throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
660[SRCategory(nameof(SR.CatPropertyChanged))]
661[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
668[SRCategory(nameof(SR.CatBehavior))]
669[SRDescription(nameof(SR.TrackBarOnScrollDescr))]
684[SRCategory(nameof(SR.CatAction))]
685[SRDescription(nameof(SR.valueChangedEventDescr))]
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (52)
74throw new ThreadStateException(string.Format(SR.AXMTAThread, clsidString));
940throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
983throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
1211throw new ThreadStateException(SR.ThreadMustBeSTA);
1284throw new NotSupportedException(SR.WebBrowserAllowDropNotSupported);
1296throw new NotSupportedException(SR.WebBrowserBackgroundImageNotSupported);
1308throw new NotSupportedException(SR.WebBrowserBackgroundImageLayoutNotSupported);
1321throw new NotSupportedException(SR.WebBrowserCursorNotSupported);
1333throw new NotSupportedException(SR.WebBrowserEnabledNotSupported);
1345throw new NotSupportedException(SR.WebBrowserRightToLeftNotSupported);
1358set => throw new NotSupportedException(SR.WebBrowserTextNotSupported);
1369throw new NotSupportedException(SR.WebBrowserUseWaitCursorNotSupported);
1381add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged"));
1389add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter"));
1397add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave"));
1405add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged"));
1413add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick"));
1421add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick"));
1429add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged"));
1437add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged"));
1445add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged"));
1453add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged"));
1461add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged"));
1469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged"));
1477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged"));
1485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged"));
1493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged"));
1501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click"));
1509add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop"));
1517add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter"));
1525add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver"));
1533add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave"));
1541add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback"));
1550add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested"));
1558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint"));
1566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag"));
1574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp"));
1582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick"));
1590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged"));
1598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown"));
1606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress"));
1614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp"));
1622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout"));
1630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown"));
1638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter"));
1646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave"));
1654add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover"));
1662add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove"));
1670add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp"));
1678add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel"));
1686add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues"));
1694add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
System\Windows\Forms\Form.cs (156)
218[SRDescription(nameof(SR.FormAcceptButtonDescr))]
298[SRDescription(nameof(SR.FormActiveMDIChildDescr))]
353[SRDescription(nameof(SR.ControlAllowTransparencyDescr))]
389[SRCategory(nameof(SR.CatLayout))]
390[SRDescription(nameof(SR.FormAutoScaleDescr))]
514[SRCategory(nameof(SR.CatPropertyChanged))]
515[SRDescription(nameof(SR.ControlOnAutoSizeChangedDescr))]
527[SRDescription(nameof(SR.ControlAutoSizeModeDescr))]
528[SRCategory(nameof(SR.CatLayout))]
654[SRCategory(nameof(SR.CatAppearance))]
657[SRDescription(nameof(SR.FormBorderStyleDescr))]
710[SRDescription(nameof(SR.FormCancelButtonDescr))]
740[SRCategory(nameof(SR.CatWindowStyle))]
742[SRDescription(nameof(SR.FormControlBoxDescr))]
890[SRCategory(nameof(SR.CatLayout))]
893[SRDescription(nameof(SR.FormDesktopBoundsDescr))]
913[SRCategory(nameof(SR.CatLayout))]
916[SRDescription(nameof(SR.FormDesktopLocationDescr))]
936[SRCategory(nameof(SR.CatBehavior))]
939[SRDescription(nameof(SR.FormDialogResultDescr))]
960[SRCategory(nameof(SR.CatWindowStyle))]
962[SRDescription(nameof(SR.FormHelpButtonDescr))]
987[SRCategory(nameof(SR.CatBehavior))]
988[SRDescription(nameof(SR.FormHelpButtonClickedDescr))]
1000[SRCategory(nameof(SR.CatWindowStyle))]
1001[SRDescription(nameof(SR.FormIconDescr))]
1065[SRCategory(nameof(SR.CatWindowStyle))]
1068[SRDescription(nameof(SR.FormIsMDIChildDescr))]
1084[SRCategory(nameof(SR.CatWindowStyle))]
1086[SRDescription(nameof(SR.FormIsMDIContainerDescr))]
1136[SRDescription(nameof(SR.FormKeyPreviewDescr))]
1171[SRCategory(nameof(SR.CatPropertyChanged))]
1172[SRDescription(nameof(SR.FormOnMaximizedBoundsChangedDescr))]
1182[SRCategory(nameof(SR.CatLayout))]
1184[SRDescription(nameof(SR.FormMaximumSizeDescr))]
1246[SRCategory(nameof(SR.CatPropertyChanged))]
1247[SRDescription(nameof(SR.FormOnMaximumSizeChangedDescr))]
1254[SRCategory(nameof(SR.CatWindowStyle))]
1256[SRDescription(nameof(SR.FormMenuStripDescr))]
1296[SRCategory(nameof(SR.CatLayout))]
1298[SRDescription(nameof(SR.FormMinimumSizeDescr))]
1377[SRCategory(nameof(SR.CatPropertyChanged))]
1378[SRDescription(nameof(SR.FormOnMinimumSizeChangedDescr))]
1389[SRCategory(nameof(SR.CatWindowStyle))]
1391[SRDescription(nameof(SR.FormMaximizeBoxDescr))]
1406[SRCategory(nameof(SR.CatWindowStyle))]
1409[SRDescription(nameof(SR.FormMDIChildrenDescr))]
1424[SRCategory(nameof(SR.CatWindowStyle))]
1426[SRDescription(nameof(SR.FormMdiChildrenMinimizedAnchorBottomDescr))]
1440[SRCategory(nameof(SR.CatWindowStyle))]
1443[SRDescription(nameof(SR.FormMDIParentDescr))]
1463throw new ArgumentException(SR.AddDifferentThreads, nameof(value));
1480throw new ArgumentException(SR.FormMDIParentAndChild, nameof(value));
1485throw new ArgumentException(SR.MDIParentNotContainer, nameof(value));
1537[SRCategory(nameof(SR.CatWindowStyle))]
1539[SRDescription(nameof(SR.FormMinimizeBoxDescr))]
1553[SRCategory(nameof(SR.CatWindowStyle))]
1556[SRDescription(nameof(SR.FormModalDescr))]
1563[SRCategory(nameof(SR.CatWindowStyle))]
1565[SRDescription(nameof(SR.FormOpacityDescr))]
1612[SRCategory(nameof(SR.CatWindowStyle))]
1615[SRDescription(nameof(SR.FormOwnedFormsDescr))]
1621[SRCategory(nameof(SR.CatWindowStyle))]
1624[SRDescription(nameof(SR.FormOwnerDescr))]
1638throw new ArgumentException(SR.NonTopLevelCantHaveOwner, nameof(value));
1688[SRCategory(nameof(SR.CatAppearance))]
1691[SRDescription(nameof(SR.ControlRightToLeftLayoutDescr))]
1757[SRCategory(nameof(SR.CatWindowStyle))]
1758[SRDescription(nameof(SR.FormScreenCaptureModeDescr))]
1771throw new InvalidOperationException(SR.FormScreenCaptureModeRequiresTopLevel);
1810[SRCategory(nameof(SR.CatWindowStyle))]
1811[SRDescription(nameof(SR.FormShowInTaskbarDescr))]
1835[SRCategory(nameof(SR.CatWindowStyle))]
1836[SRDescription(nameof(SR.FormShowIconDescr))]
1917[SRCategory(nameof(SR.CatWindowStyle))]
1919[SRDescription(nameof(SR.FormSizeGripStyleDescr))]
1946[SRCategory(nameof(SR.CatLayout))]
1948[SRDescription(nameof(SR.FormStartPositionDescr))]
1983[SRCategory(nameof(SR.CatBehavior))]
1988[SRDescription(nameof(SR.ControlTabStopDescr))]
2047throw new ArgumentException(SR.MDIContainerMustBeTopLevel, nameof(value));
2059[SRCategory(nameof(SR.CatWindowStyle))]
2060[SRDescription(nameof(SR.FormTopMostDescr))]
2082[SRCategory(nameof(SR.CatWindowStyle))]
2083[SRDescription(nameof(SR.FormTransparencyKeyDescr))]
2262[SRCategory(nameof(SR.CatWindowStyle))]
2263[SRDescription(nameof(SR.FormCornerPreferenceDescr))]
2350[SRCategory(nameof(SR.CatWindowStyle))]
2351[SRDescription(nameof(SR.FormBorderColorDescr))]
2410[SRCategory(nameof(SR.CatWindowStyle))]
2411[SRDescription(nameof(SR.FormCaptionBackColorDescr))]
2471[SRCategory(nameof(SR.CatWindowStyle))]
2472[SRDescription(nameof(SR.FormCaptionTextColorDescr))]
2538[SRCategory(nameof(SR.CatLayout))]
2540[SRDescription(nameof(SR.FormWindowStateDescr))]
2610[SRCategory(nameof(SR.CatFocus))]
2611[SRDescription(nameof(SR.FormOnActivateDescr))]
2621[SRCategory(nameof(SR.CatBehavior))]
2622[SRDescription(nameof(SR.FormOnClosingDescr))]
2639[SRCategory(nameof(SR.CatBehavior))]
2640[SRDescription(nameof(SR.FormOnClosedDescr))]
2657[SRCategory(nameof(SR.CatFocus))]
2658[SRDescription(nameof(SR.FormOnDeactivateDescr))]
2668[SRCategory(nameof(SR.CatBehavior))]
2669[SRDescription(nameof(SR.FormOnFormClosingDescr))]
2679[SRCategory(nameof(SR.CatAppearance))]
2680[SRDescription(nameof(SR.FormBorderColorChangedDescr))]
2690[SRCategory(nameof(SR.CatAppearance))]
2691[SRDescription(nameof(SR.FormCaptionBackColorChangedDescr))]
2701[SRCategory(nameof(SR.CatAppearance))]
2702[SRDescription(nameof(SR.FormCaptionTextColorChangedDescr))]
2712[SRCategory(nameof(SR.CatAppearance))]
2713[SRDescription(nameof(SR.FormCornerPreferenceChangedDescr))]
2723[SRCategory(nameof(SR.CatBehavior))]
2724[SRDescription(nameof(SR.FormOnFormClosedDescr))]
2734[SRCategory(nameof(SR.CatBehavior))]
2735[SRDescription(nameof(SR.FormOnLoadDescr))]
2746[SRCategory(nameof(SR.CatLayout))]
2747[SRDescription(nameof(SR.FormOnMDIChildActivateDescr))]
2757[SRCategory(nameof(SR.CatBehavior))]
2758[SRDescription(nameof(SR.FormOnMenuCompleteDescr))]
2769[SRCategory(nameof(SR.CatBehavior))]
2770[SRDescription(nameof(SR.FormOnMenuStartDescr))]
2781[SRCategory(nameof(SR.CatBehavior))]
2782[SRDescription(nameof(SR.FormOnInputLangChangeDescr))]
2793[SRCategory(nameof(SR.CatBehavior))]
2794[SRDescription(nameof(SR.FormOnInputLangChangeRequestDescr))]
2801[SRCategory(nameof(SR.CatPropertyChanged))]
2802[SRDescription(nameof(SR.ControlOnRightToLeftLayoutChangedDescr))]
2812[SRCategory(nameof(SR.CatBehavior))]
2813[SRDescription(nameof(SR.FormOnShownDescr))]
3248throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close"));
4564[SRCategory(nameof(SR.CatLayout))]
4565[SRDescription(nameof(SR.FormOnDpiChangedDescr))]
5100[SRCategory(nameof(SR.CatAction))]
5101[SRDescription(nameof(SR.FormOnResizeBeginDescr))]
5111[SRCategory(nameof(SR.CatAction))]
5112[SRDescription(nameof(SR.FormOnResizeEndDescr))]
5170throw new InvalidOperationException(SR.TooManyResumeUpdateMenuHandles);
5510throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)));
5515throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show)));
5520throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show)));
5525throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show)));
5530throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5556throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner));
5670throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5684?? throw new InvalidOperationException(SR.FormOrTaskDialog_NoSyncContextForShowAsync);
5731throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5736throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog)));
5741throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog)));
5746throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog)));
5751throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog)));
5756throw new InvalidOperationException(SR.CantShowModalOnNonInteractive);
5810throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
5970throw new InvalidOperationException(SR.Form_HasAlreadyBeenShownAsync);
5984?? 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));