9 writes to Caption
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
1312cp.Caption = _text;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
91Caption = ToolTip,
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
92Caption = string.Empty,
System\Windows\Forms\NativeWindow.cs (1)
436cp.Caption = cp.Caption[..short.MaxValue];
System\Windows\Forms\Timer.cs (1)
220Caption = GetType().Name,
System\Windows\Forms\ToolTip\ToolTip.cs (1)
228cp.Caption = null;
System.Windows.Forms.Tests (3)
System\Windows\Forms\CreateParamsTests.cs (2)
26Caption = value 136Caption = "caption",
System\Windows\Forms\NativeWindowTests.cs (1)
147Caption = caption
123 references to Caption
System.Windows.Forms (6)
System\Windows\Forms\CreateParams.cs (1)
72return $"CreateParams {{'{ClassName}', '{Caption}', 0x{Style:x}, 0x{ExStyle:x}, {{{X}, {Y}, {Width}, {Height}}}}}";
System\Windows\Forms\NativeWindow.cs (5)
434if (cp.Caption is not null && cp.Caption.Length > short.MaxValue) 436cp.Caption = cp.Caption[..short.MaxValue]; 442cp.Caption, 468$"Handle created of type '{cp.ClassName}' with caption '{cp.Caption}' from NativeWindow of type '{GetType().FullName}'");
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
137Assert.Null(createParams.Caption);
System.Windows.Forms.Tests (116)
System\Windows\Forms\AxHostTests.cs (2)
233Assert.Null(createParams.Caption); 273Assert.Null(createParams.Caption);
System\Windows\Forms\ButtonBaseTests.cs (3)
130Assert.Null(createParams.Caption); 163Assert.Null(createParams.Caption); 233Assert.Null(createParams.Caption);
System\Windows\Forms\ButtonTests.cs (4)
128Assert.Null(createParams.Caption); 152Assert.Null(createParams.Caption); 185Assert.Null(createParams.Caption); 255Assert.Null(createParams.Caption);
System\Windows\Forms\CheckBoxTests.cs (1)
131Assert.Null(createParams.Caption);
System\Windows\Forms\ComboBoxTests.cs (1)
140Assert.Null(createParams.Caption);
System\Windows\Forms\ContainerControlTests.cs (1)
131Assert.Null(createParams.Caption);
System\Windows\Forms\ControlTests.cs (9)
503Assert.Null(createParams.Caption); 527Assert.Null(createParams.Caption); 553Assert.Null(createParams.Caption); 578Assert.Null(createParams.Caption); 604Assert.Null(createParams.Caption); 626Assert.Null(createParams.Caption); 653Assert.Null(createParams.Caption); 679Assert.Null(createParams.Caption); 705Assert.Null(createParams.Caption);
System\Windows\Forms\CreateParamsTests.cs (1)
28Assert.Equal(value, createParams.Caption);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
138Assert.Null(createParams.Caption);
System\Windows\Forms\DateTimePickerTests.cs (1)
131Assert.Null(createParams.Caption);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
174Assert.Equal("Properties", createParams.Caption);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
134Assert.Null(createParams.Caption);
System\Windows\Forms\DomainUpDownTests.cs (1)
160createParams.Caption.Should().BeNull();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
126Assert.Null(createParams.Caption);
System\Windows\Forms\FormTests.cs (1)
175Assert.Null(createParams.Caption);
System\Windows\Forms\GroupBoxTests.cs (2)
111Assert.Null(createParams.Caption); 139Assert.Null(createParams.Caption);
System\Windows\Forms\HScrollBarTests.cs (1)
125Assert.Null(createParams.Caption);
System\Windows\Forms\LabelTests.cs (1)
122Assert.Null(createParams.Caption);
System\Windows\Forms\ListBoxTests.cs (8)
143Assert.Null(createParams.Caption); 169Assert.Null(createParams.Caption); 195Assert.Null(createParams.Caption); 221Assert.Null(createParams.Caption); 248Assert.Null(createParams.Caption); 277Assert.Null(createParams.Caption); 305Assert.Null(createParams.Caption); 332Assert.Null(createParams.Caption);
System\Windows\Forms\ListControlTests.cs (1)
119Assert.Null(createParams.Caption);
System\Windows\Forms\ListViewTests.cs (1)
161Assert.Null(createParams.Caption);
System\Windows\Forms\MonthCalendarTests.cs (1)
150Assert.Null(createParams.Caption);
System\Windows\Forms\NativeWindowTests.cs (3)
110Assert.Null(cp.Caption); 119Assert.Null(cp.Caption); 153Assert.Equal(expectedCaption, cp.Caption);
System\Windows\Forms\PanelTests.cs (2)
124Assert.Null(createParams.Caption); 150Assert.Null(createParams.Caption);
System\Windows\Forms\PictureBoxTests.cs (1)
125Assert.Null(createParams.Caption);
System\Windows\Forms\ProgressBarTests.cs (3)
111Assert.Null(createParams.Caption); 150Assert.Null(createParams.Caption); 179Assert.Null(createParams.Caption);
System\Windows\Forms\PropertyGridTests.cs (1)
179Assert.Null(createParams.Caption);
System\Windows\Forms\RadioButtonTests.cs (2)
128Assert.Null(createParams.Caption); 152Assert.Null(createParams.Caption);
System\Windows\Forms\RichTextBoxTests.cs (2)
145Assert.Null(createParams.Caption); 225Assert.Null(createParams.Caption);
System\Windows\Forms\ScrollableControlTests.cs (3)
124Assert.Null(createParams.Caption); 151Assert.Null(createParams.Caption); 178Assert.Null(createParams.Caption);
System\Windows\Forms\ScrollBarTests.cs (1)
113Assert.Null(createParams.Caption);
System\Windows\Forms\SplitterTests.cs (2)
111Assert.Null(createParams.Caption); 138Assert.Null(createParams.Caption);
System\Windows\Forms\StatusStripTests.cs (1)
160Assert.Null(createParams.Caption);
System\Windows\Forms\TabControlTests.cs (9)
122Assert.Null(createParams.Caption); 147Assert.Null(createParams.Caption); 171Assert.Null(createParams.Caption); 208Assert.Null(createParams.Caption); 234Assert.Null(createParams.Caption); 258Assert.Null(createParams.Caption); 293Assert.Null(createParams.Caption); 318Assert.Null(createParams.Caption); 347Assert.Null(createParams.Caption);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
135Assert.Null(createParams.Caption);
System\Windows\Forms\TabPageTests.cs (1)
240Assert.Null(createParams.Caption);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
167Assert.Null(createParams.Caption); 198Assert.Null(createParams.Caption); 232Assert.Null(createParams.Caption);
System\Windows\Forms\ToolStripPanelTests.cs (1)
128Assert.Null(createParams.Caption);
System\Windows\Forms\ToolStripTests.cs (1)
340Assert.Null(createParams.Caption);
System\Windows\Forms\ToolTipTests.cs (1)
84Assert.Null(createParams.Caption);
System\Windows\Forms\TreeViewTests.cs (19)
138Assert.Null(createParams.Caption); 166Assert.Null(createParams.Caption); 196Assert.Null(createParams.Caption); 222Assert.Null(createParams.Caption); 248Assert.Null(createParams.Caption); 274Assert.Null(createParams.Caption); 300Assert.Null(createParams.Caption); 326Assert.Null(createParams.Caption); 352Assert.Null(createParams.Caption); 378Assert.Null(createParams.Caption); 404Assert.Null(createParams.Caption); 430Assert.Null(createParams.Caption); 463Assert.Null(createParams.Caption); 496Assert.Null(createParams.Caption); 542Assert.Null(createParams.Caption); 588Assert.Null(createParams.Caption); 616Assert.Null(createParams.Caption); 649Assert.Null(createParams.Caption); 682Assert.Null(createParams.Caption);
System\Windows\Forms\UpDownBaseTests.cs (2)
143Assert.Null(createParams.Caption); 185Assert.Null(createParams.Caption);
System\Windows\Forms\UserControlTests.cs (2)
131Assert.Null(createParams.Caption); 157Assert.Null(createParams.Caption);
System\Windows\Forms\VScrollBarTests.cs (1)
124Assert.Null(createParams.Caption);
System\Windows\Forms\WebBrowserTests.cs (1)
107Assert.Null(createParams.Caption);
TextBoxBaseTests.cs (4)
23Assert.Null(createParams.Caption); 49Assert.Null(createParams.Caption); 75Assert.Null(createParams.Caption); 130Assert.Null(createParams.Caption);
TextBoxTests.cs (1)
131Assert.Null(createParams.Caption);
TrackBarTests.cs (4)
118Assert.Null(createParams.Caption); 146Assert.Null(createParams.Caption); 172Assert.Null(createParams.Caption); 203Assert.Null(createParams.Caption);