5 overrides of Text
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
403
public override string
Text
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
194
public override string?
Text
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
103
public override string?
Text
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (1)
45
public override string?
Text
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripItemTests.cs (1)
15284
public override string
Text
247 writes to Text
Accessibility_Core_App (98)
DataControls.Designer.cs (12)
117
this.bindingNavigatorAddNewItem.
Text
= "Add new";
124
this.bindingNavigatorCountItem.
Text
= "of {0}";
134
this.bindingNavigatorDeleteItem.
Text
= "Delete";
143
this.bindingNavigatorMoveFirstItem.
Text
= "Move first";
152
this.bindingNavigatorMovePreviousItem.
Text
= "Move previous";
180
this.bindingNavigatorMoveNextItem.
Text
= "Move next";
189
this.bindingNavigatorMoveLastItem.
Text
= "Move last";
202
this.toolStripButton1.
Text
= "toolStripButton1";
208
this.toolStripLabel1.
Text
= "toolStripLabel1";
216
this.toolStripSplitButton1.
Text
= "toolStripSplitButton1";
224
this.toolStripDropDownButton1.
Text
= "toolStripDropDownButton1";
261
this.toolStripLabel2.
Text
= "The current progress percentage of ProgressBar is 50";
Menu_Toolbars_controls.Designer.cs (45)
133
menuStripToolStripMenuItem.
Text
= "MenuStrip";
139
item1ToolStripMenuItem.
Text
= "Item1";
146
shortCutsToolStripMenuItem.
Text
= "ShortCuts";
152
item2ToolStripMenuItem.
Text
= "Item2";
159
fileToolStripMenuItem.
Text
= "&File";
169
newToolStripMenuItem.
Text
= "&New";
178
openToolStripMenuItem.
Text
= "&Open";
192
saveToolStripMenuItem.
Text
= "&Save";
198
saveAsToolStripMenuItem.
Text
= "Save &As";
212
printToolStripMenuItem.
Text
= "&Print";
220
printPreviewToolStripMenuItem.
Text
= "Print Pre&view";
231
exitToolStripMenuItem.
Text
= "E&xit";
238
editToolStripMenuItem.
Text
= "&Edit";
246
undoToolStripMenuItem.
Text
= "&Undo";
253
redoToolStripMenuItem.
Text
= "&Redo";
267
cutToolStripMenuItem.
Text
= "Cu&t";
276
copyToolStripMenuItem.
Text
= "&Copy";
285
pasteToolStripMenuItem.
Text
= "&Paste";
296
selectAllToolStripMenuItem.
Text
= "Select &All";
303
toolsToolStripMenuItem.
Text
= "&Tools";
310
customizeToolStripMenuItem.
Text
= "&Customize";
316
optionsToolStripMenuItem.
Text
= "&Options";
323
helpToolStripMenuItem.
Text
= "&Help";
330
contentsToolStripMenuItem.
Text
= "&Contents";
336
indexToolStripMenuItem.
Text
= "&Index";
342
searchToolStripMenuItem.
Text
= "&Search";
353
aboutToolStripMenuItem.
Text
= "&About...";
360
toolStripMenuItem1.
Text
= "CheckState Samples";
368
uncheckedCheckOnClickToolStripMenuItem.
Text
= "Unchecked_CheckOnClick(T)";
377
checkCheckOnClickToolStripMenuItem.
Text
= "Checked_CheckOnClick(T)";
385
checkedCheckOnClickFToolStripMenuItem.
Text
= "Checked_CheckOnClick(F)";
394
indeterminateToolStripMenuItem.
Text
= "Indeterminate_CheckOnClick(T)";
402
indeterminateCheckOnClickFToolStripMenuItem.
Text
= "Indeterminate_CheckOnClick(F)";
439
toolStripDropDownButton1.
Text
= "toolStripDropDownButton1";
455
toolStripMenuItem3.
Text
= "toolStripMenuItem3";
465
toolStripSplitButton1.
Text
= "toolStripSplitButton1";
486
toolStripMenuItem2.
Text
= "toolStripMenuItem2";
492
toolStripStatusLabel1.
Text
= "toolStripStatusLabel1";
518
newToolStripButton.
Text
= "&New";
532
toolStripButton1.
Text
= "Unchecked_CheckOnClick(F)";
542
toolStripButton2.
Text
= "Unchecked_CheckOnClick(T)";
554
toolStripButton3.
Text
= "Checked_CheckOnClick(T)";
565
toolStripButton4.
Text
= "Checked_CheckOnClick(F)";
577
toolStripButton5.
Text
= "Indeterminate_CheckOnClick(T)";
588
toolStripButton6.
Text
= "Indeterminate_CheckOnClick(F)";
ToolStripContainer.Designer.cs (41)
157
this.toolStripButton1.
Text
= "toolStrip_Button1";
168
this.toolStripSplitButton1.
Text
= "toolStrip_SplitButton1";
174
this.toolStripToolStripMenuItem.
Text
= "ToolStrip";
183
this.newToolStripButton.
Text
= "&New";
192
this.openToolStripButton.
Text
= "&Open";
201
this.saveToolStripButton.
Text
= "&Save";
210
this.printToolStripButton.
Text
= "&Print";
224
this.cutToolStripButton.
Text
= "C&ut";
233
this.copyToolStripButton.
Text
= "&Copy";
242
this.pasteToolStripButton.
Text
= "&Paste";
256
this.helpToolStripButton.
Text
= "He&lp";
297
this.toolStripDropDownButton1.
Text
= "toolStripDropDownButton1";
303
this.statusStripToolStripMenuItem.
Text
= "StatusStrip";
312
this.toolStripSplitButton2.
Text
= "toolStripSplitButton2";
318
this.toolStripStatusLabel1.
Text
= "toolStripStatusLabel1";
325
this.toolStripStatusLabel2.
Text
= "toolStripStatusLabel2";
352
this.menuStripToolStripMenuItem.
Text
= "MenuStrip";
359
this.menuStripItem1ToolStripMenuItem.
Text
= "MenuStripItem1";
377
this.fileToolStripMenuItem.
Text
= "&File";
386
this.newToolStripMenuItem.
Text
= "&New";
394
this.openToolStripMenuItem.
Text
= "&Open";
407
this.saveToolStripMenuItem.
Text
= "&Save";
413
this.saveAsToolStripMenuItem.
Text
= "Save &As";
426
this.printToolStripMenuItem.
Text
= "&Print";
434
this.printPreviewToolStripMenuItem.
Text
= "Print Pre&view";
445
this.exitToolStripMenuItem.
Text
= "E&xit";
460
this.editToolStripMenuItem.
Text
= "&Edit";
467
this.undoToolStripMenuItem.
Text
= "&Undo";
473
this.redoToolStripMenuItem.
Text
= "&Redo";
486
this.cutToolStripMenuItem.
Text
= "Cu&t";
494
this.copyToolStripMenuItem.
Text
= "&Copy";
502
this.pasteToolStripMenuItem.
Text
= "&Paste";
513
this.selectAllToolStripMenuItem.
Text
= "Select &All";
522
this.toolsToolStripMenuItem.
Text
= "&Tools";
529
this.customizeToolStripMenuItem.
Text
= "&Customize";
535
this.optionsToolStripMenuItem.
Text
= "&Options";
547
this.helpToolStripMenuItem.
Text
= "&Help";
554
this.contentsToolStripMenuItem.
Text
= "&Contents";
560
this.indexToolStripMenuItem.
Text
= "&Index";
566
this.searchToolStripMenuItem.
Text
= "&Search";
577
this.aboutToolStripMenuItem.
Text
= "&About...";
DesignSurface (12)
MainForm.Designer.cs (12)
188
this.editToolStripMenuItem.
Text
= "&Edit";
195
this.ToolStripMenuItemUnDo.
Text
= "Undo";
203
this.ToolStripMenuItemReDo.
Text
= "Redo";
218
this.ToolStripMenuItemCut.
Text
= "Cut";
228
this.ToolStripMenuItemCopy.
Text
= "Copy";
238
this.ToolStripMenuItemPaste.
Text
= "Paste";
246
this.ToolStripMenuItemDelete.
Text
= "Delete";
254
this.ToolStripMenuItemKeyInvokeSmartTag.
Text
= "InvokeSmartTag";
268
this.toolStripMenuItemTools.
Text
= "&Tools";
274
this.toolStripMenuItemTabOrder.
Text
= "Tab Order";
283
this.helpToolStripMenuItem.
Text
= "&Help";
289
this.ToolStripMenuItemAbout.
Text
= "About...";
System.Windows.Forms (16)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1717
Text
= toolTipText,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
169
Text
= text;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
148
Text
= textFields[0];
527
menuItem.
Text
= Text;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
197
set => base.
Text
= value;
System\Windows\Forms\DataBinding\BindingNavigator.cs (8)
165
MoveFirstItem.
Text
= SR.BindingNavigatorMoveFirstItemText;
166
MovePreviousItem.
Text
= SR.BindingNavigatorMovePreviousItemText;
167
MoveNextItem.
Text
= SR.BindingNavigatorMoveNextItemText;
168
MoveLastItem.
Text
= SR.BindingNavigatorMoveLastItemText;
169
AddNewItem.
Text
= SR.BindingNavigatorAddNewItemText;
170
DeleteItem.
Text
= SR.BindingNavigatorDeleteItemText;
567
_positionItem.
Text
= position.ToString(CultureInfo.CurrentCulture);
573
_countItem.
Text
= DesignMode ? CountItemFormat : string.Format(CultureInfo.CurrentCulture, CountItemFormat, count);
System\Windows\Forms\MDI\MdiWindowListStrip.cs (3)
76
mergeItem.
Text
= mdiMergeItem.Text;
115
Text
= $"&{accel} {text}",
141
Text
= SR.MDIMenuMoreWindows
System.Windows.Forms.Design (28)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
133
_selectionMenuItem.
Text
= SR.ContextMenuSelect;
283
Text
= string.Format(SR.ToolStripSelectMenuItem, compName);
System\Windows\Forms\Design\DesignerVerbToolStripMenuItem.cs (1)
18
Text
= verb.Text;
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
42
Text
= text;
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
144
item.
Text
= itemText;
156
item.
Text
= itemText;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (12)
154
Text
= SR.TableLayoutPanelDesignerRowMenu
160
Text
= SR.TableLayoutPanelDesignerColMenu
171
item.
Text
= SR.TableLayoutPanelDesignerContextMenuCut;
175
item.
Text
= SR.TableLayoutPanelDesignerContextMenuCopy;
179
item.
Text
= SR.TableLayoutPanelDesignerContextMenuDelete;
316
add.
Text
= SR.TableLayoutPanelDesignerAddMenu;
321
insert.
Text
= SR.TableLayoutPanelDesignerInsertMenu;
326
delete.
Text
= SR.TableLayoutPanelDesignerDeleteMenu;
331
label.
Text
= SR.TableLayoutPanelDesignerLabelMenu;
339
absolute.
Text
= SR.TableLayoutPanelDesignerAbsoluteMenu;
344
percent.
Text
= SR.TableLayoutPanelDesignerPercentageMenu;
349
autosize.
Text
= SR.TableLayoutPanelDesignerAutoSizeMenu;
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
40
Text
= SR.ToolStripItemContextMenuInsert,
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
396
_menuItem.
Text
= (_dropDown is not null) ? _dropDown.GetType().Name : _menuItem.Name;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
122
Text
= SR.ToolStripItemContextMenuSetImage,
194
Text
= SR.ToolStripItemContextMenuConvertTo,
199
Text
= SR.ToolStripItemContextMenuInsert,
215
Text
= SR.ToolStripDropDownItemCollectionEditorVerb
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
948
_centerLabel.
Text
= SR.ToolStripDesignerTemplateNodeEnterText;
981
_centerLabel.
Text
= currentItem.Text;
1368
Text
= text,
1526
_centerLabel.
Text
= text;
System.Windows.Forms.Tests (29)
System\Windows\Forms\AccessibleObjects\ToolStripProgressBar.ToolStripProgressBarControl.ToolStripProgressBarControlAccessibleObjectTests.cs (2)
120
using ToolStripLabel label = new() {
Text
= "Label" };
121
using ToolStripButton button = new() {
Text
= "Button" };
System\Windows\Forms\MdiControlStripTests.cs (6)
198
using ToolStripMenuItem toolStripMenuItem1 = new() {
Text
= "&Test1" };
199
using ToolStripMenuItem toolStripMenuItem2 = new() {
Text
= "&Test2" };
244
using ToolStripMenuItem toolStripMenuItem1 = new() {
Text
= "&Test1" };
245
using ToolStripMenuItem toolStripMenuItem2 = new() {
Text
= "&Test2" };
289
using ToolStripMenuItem toolStripMenuItem1 = new() {
Text
= "&Test1" };
290
using ToolStripMenuItem toolStripMenuItem2 = new() {
Text
= "&Test2" };
System\Windows\Forms\ToolStripButtonTests.cs (3)
1280
Text
= "Text",
1371
Text
= "Text",
1469
Text
= "Text",
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (1)
18
Text
= "Hello"
System\Windows\Forms\ToolStripItemTests.cs (16)
8068
Text
= value
8073
item.
Text
= value;
8101
item.
Text
= value;
8107
item.
Text
= value;
8150
item.
Text
= value;
8159
item.
Text
= value;
8188
item.
Text
= value;
8194
item.
Text
= value;
8228
item.
Text
= value;
8237
item.
Text
= value;
8265
item.
Text
= "value";
8270
item.
Text
= "value";
8275
item.
Text
= string.Empty;
8281
item.
Text
= "value";
9050
Text
= text
15270
Text
= text
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
302
Text
= "Text",
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
1031
Text
= "Drag Images",
1057
Text
= "DragAccept",
WinFormsControlsTest (62)
DragDrop.cs (4)
452
Text
= "Cats",
475
Text
= "DragAcceptFiles",
486
Text
= "Nyan Cat",
497
Text
= "Ascii Cat",
MdiChild.cs (2)
16
_menuStrip.Items.Add(new ToolStripMenuItem {
Text
= "Child1" });
20
Text
= "Child2",
MdiParent.cs (2)
19
ToolStripMenuItem menu = new() {
Text
= "Open new child" };
38
Text
= $"Item{i}"
MenuStripAndCheckedListBox.Designer.cs (22)
92
this.fileToolStripMenuItem.
Text
= "Project";
99
this.newToolStripMenuItem.
Text
= "New";
107
this.openToolStripMenuItem1.
Text
= "Open";
123
this.memoryCardFileToolStripMenuItem.
Text
= "Memory Card File";
132
this.navigationToolStripMenuItem.
Text
= "Navigation";
141
this.newToolStripMenuItem1.
Text
= "New";
149
this.settingsEditorToolStripMenuItem.
Text
= "Settings Editor";
155
this.openToolStripMenuItem.
Text
= "Open";
161
this.saveToolStripMenuItem.
Text
= "Save";
167
this.saveAsToolStripMenuItem.
Text
= "Save As";
173
this.exitToolStripMenuItem1.
Text
= "Exit";
184
this.exitToolStripMenuItem.
Text
= "Exit";
190
this.editToolStripMenuItem.
Text
= "Edit";
196
this.viewToolStripMenuItem.
Text
= "View";
202
this.insertToolStripMenuItem.
Text
= "Insert";
208
this.checkStateSamplesToolStripMenuItem.
Text
= "CheckState samples";
221
this.uncheckedToolStripMenuItem.
Text
= "Unchecked CheckOnClick(F)";
229
this.uncheckedCheckOnClickToolStripMenuItem.
Text
= "Unchecked CheckOnClick(T)";
239
this.checkedToolStripMenuItem.
Text
= "Checked CheckOnClick(F)";
249
this.checkedCheckOnClickToolStripMenuItem.
Text
= "Checked CheckOnClick(T)";
258
this.indeterminateToolStripMenuItem.
Text
= "Indeterminate CheckOnClick(F)";
268
this.indeterminateCheckOnClickToolStripMenuItem.
Text
= "Indeterminate CheckOnClick(T)";
ToolStripSeparatorPreferredSize.cs (2)
59
_toolStripLabel1.
Text
= "ToolStripLabel";
65
_toolStripLabel2.
Text
= "ToolStripLabel";
ToolStripTests.Designer.cs (30)
144
this.toolStrip4_Label1.
Text
= "toolStrip4_Label1";
151
this.toolStrip4_MenuItem1.
Text
= "toolStrip4_MenuItem1";
158
this.toolStrip4_SubMenuItem.
Text
= "toolStrip4_SubMenuItem";
166
this.toolStrip2_Button1.
Text
= "toolStrip2_Button1_Unchecked";
175
this.toolStrip2_Button2.
Text
= "toolStrip2_Button2_Checked";
183
this.toolStrip2_Button3.
Text
= "toolStrip2_Button3_Indeterminate";
192
this.toolStrip2_Button4.
Text
= "toolStrip2_Button4_Checkable";
199
this.toolStrip2_Button5.
Text
= "toolStrip2_Button5";
206
this.toolStrip2_Button6.
Text
= "CheckButton role";
212
this.toolStrip2_SplitButton1_ChildButton1.
Text
= "toolStrip2_SplitButton1_ChildButton1";
218
this.toolStrip2_SplitButton1_ChildButton2.
Text
= "toolStrip2_SplitButton1_ChildButton2";
225
this.toolStrip3_MenuItem1.
Text
= "toolStripMenuItem_checked";
233
this.toolStrip3_MenuItem2.
Text
= "toolStripMenuItemWithDropDownItem_unchecked";
241
this.uncheckedCheckOnClickToolStripMenuItem.
Text
= "Unchecked_CheckOnClick(T)";
250
this.checkCheckOnClickToolStripMenuItem.
Text
= "Checked_CheckOnClick(T)";
258
this.thirdLevelItem.
Text
= "thirdLevelItem";
266
this.thirdLevelButton.
Text
= "thirdLevelButton";
291
this.toolStrip2_SplitButton2.
Text
= "toolStrip2_SplitButton2";
298
this.toolStripMenuItem1.
Text
= "toolStripMenuItem1";
308
this.toolStrip2_DropDownButton2.
Text
= "toolStrip2_DropDownButton2";
315
this.toolStripMenuItem2.
Text
= "test2";
324
this.checkedCheckOnClickFToolStripMenuItem.
Text
= "Checked_CheckOnClick(F)";
333
this.indeterminateToolStripMenuItem.
Text
= "Indeterminate_CheckOnClick(T)";
341
this.indeterminateCheckOnClickFToolStripMenuItem.
Text
= "Indeterminate_CheckOnClick(F)";
352
this.toolStrip2_SplitButton1.
Text
= "toolStrip2_SplitButton1";
358
this.toolStrip2_DropDownButton1_ChildButton1.
Text
= "toolStrip2_DropDownButton1_ChildButton1";
364
this.toolStrip2_DropDownButton1_ChildButton2.
Text
= "toolStrip2_DropDownButton1_ChildButton2";
374
this.toolStrip2_DropDownButton1.
Text
= "toolStrip2_DropDownButton1";
407
this.toolStripLabel1.
Text
= "ToolStripLabel";
431
this.toolStripStatusLabel1.
Text
= "ToolStripStatusLabel";
121 references to Text
DesignSurface (1)
MainForm.cs (1)
488
isurf?.DoAction((sender as ToolStripMenuItem).
Text
);
System.Windows.Forms (27)
System\Windows\Forms\Controls\ToolStrips\MergeHistoryItem.cs (1)
26
=> $"MergeAction: {MergeAction} | TargetItem: {(TargetItem is null ? "null" : TargetItem.
Text
)} Index: {Index}";
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
2893
if (string.IsNullOrEmpty(currentItem.
Text
) || !currentItem.Enabled)
2908
if (IsMnemonic(charCode, currentItem.
Text
))
2957
if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.
Text
) || !currentItem.Enabled)
2968
if (IsPseudoMnemonic(charCode, currentItem.
Text
))
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
221
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(e.Graphics, this,
Text
, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
193
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this,
Text
, InternalLayout.TextRectangle, ForeColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (6)
20
[DefaultProperty(nameof(
Text
))]
1962
string? toolText =
Text
;
2345
if (string.IsNullOrEmpty(
Text
))
2351
_cachedTextSize = TextRenderer.MeasureText(
Text
, Font);
3514
if (!string.IsNullOrEmpty(
Text
))
3516
return
Text
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
76
char mnemonic = WindowsFormsUtils.GetMnemonic(_ownerItem.
Text
, false);
132
return WindowsFormsUtils.TextWithoutMnemonics(_ownerItem.
Text
)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
110
layoutOptions.Text = ((Owner.DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text) ? Owner.
Text
: string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
379
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this,
Text
, textRect, textColor, font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
1042
if (WindowsFormsUtils.SafeCompareStrings(source.
Text
, candidateItem.
Text
, true))
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
527
menuItem.Text =
Text
;
994
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this,
Text
, InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleRight : ContentAlignment.MiddleLeft));
1025
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this,
Text
, InternalLayout.TextRectangle, textColor, Font, InternalLayout.TextFormat));
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
196
get => base.
Text
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
229
_splitButtonButton.Text =
Text
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
109
return _owner.
Text
;
System\Windows\Forms\DataBinding\BindingNavigator.cs (1)
617
newPosition = Convert.ToInt32(_positionItem.
Text
, CultureInfo.CurrentCulture) - 1;
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
76
mergeItem.Text = mdiMergeItem.
Text
;
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
174
navigator.CountItemFormat = navigator.CountItem.
Text
?? string.Empty;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (4)
139
if (item.
Text
.Equals(verb.Text))
169
if (item.
Text
.Equals(SR.ContextMenuCut))
173
else if (item.
Text
.Equals(SR.ContextMenuCopy))
177
else if (item.
Text
.Equals(SR.ContextMenuDelete))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
315
_editorNode = new ToolStripTemplateNode(ToolStripItem, ToolStripItem.
Text
);
1229
_editorNode.SetWidth(ToolStripItem.
Text
);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1358
CreateDummyMenuItem(toolItem, toolItem.
Text
);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
878
Text = _centerLabel.
Text
,
981
_centerLabel.Text = currentItem.
Text
;
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\CollectionEditVerbManagerTests.cs (1)
28
PropertyDescriptor? propertyDescriptor = properties[nameof(ToolStripButton.
Text
)];
System\Windows\Forms\Design\DesignerVerbToolStripMenuItemTests.cs (1)
18
item.
Text
.Should().Be("TestVerb");
System\Windows\Forms\Design\ItemTypeToolStripMenuItemTests.cs (1)
42
_item.
Text
.Should().BeOfType<string>().Which.Should().Be(ToolStripDesignerUtils.GetToolboxDescription(typeof(string)));
System.Windows.Forms.Tests (80)
BindingNavigatorTests.cs (11)
103
Assert.Equal(itemTexts[i], item.
Text
.Trim());
138
Assert.Equal("1", control.PositionItem.
Text
);
139
Assert.Equal($"of {rowsCount}", control.CountItem.
Text
);
145
Assert.Equal("0", control.PositionItem.
Text
);
146
Assert.Equal("of 0", control.CountItem.
Text
);
174
Assert.Equal("1", control.PositionItem.
Text
);
175
Assert.Equal($"of {rowsCount1}", control.CountItem.
Text
);
180
Assert.Equal("1", control.PositionItem.
Text
);
181
Assert.Equal($"of {rowsCount2}", control.CountItem.
Text
);
190
Assert.Equal("1", control.PositionItem.
Text
);
191
Assert.Equal($"of {rowsCount2}", control.CountItem.
Text
);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
119
toolStripDropDownButton.
Text
.Should().Be(text);
System\Windows\Forms\MenuStripTests.cs (1)
451
Assert.Equal(text, item.
Text
);
System\Windows\Forms\StatusStripTests.cs (1)
886
Assert.Equal(text, button.
Text
);
System\Windows\Forms\ToolStripButtonTests.cs (6)
85
Assert.Empty(item.
Text
);
166
Assert.Equal(text, item.
Text
);
253
Assert.Null(item.
Text
);
343
Assert.Equal(text, item.
Text
);
431
Assert.Equal(text, item.
Text
);
529
Assert.Equal(text, item.
Text
);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
85
Assert.Empty(item.
Text
);
174
Assert.Equal(text, item.
Text
);
273
Assert.Equal(text, item.
Text
);
381
Assert.Equal(text, item.
Text
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2963
Assert.Equal(text, button.
Text
);
System\Windows\Forms\ToolStripItemCollectionTests.cs (9)
125
Assert.Equal("a", contextMenuStrip.Items[0].
Text
);
126
Assert.Equal("b", contextMenuStrip.Items[1].
Text
);
127
Assert.Equal("c", contextMenuStrip.Items[2].
Text
);
149
toolStrip.Items[0].
Text
.Should().Be("Button 1");
150
toolStrip.Items[1].
Text
.Should().Be("Button 2");
165
collection[0].
Text
.Should().Be("Item1");
166
collection[1].
Text
.Should().Be("Item2");
295
collection[0].
Text
.Should().Be("Item2");
383
item.
Text
.Should().Be(text);
System\Windows\Forms\ToolStripItemTests.cs (17)
84
Assert.Empty(item.
Text
);
169
Assert.Equal(text, item.
Text
);
264
Assert.Equal(text, item.
Text
);
8070
Assert.Equal(value, item.
Text
);
8074
Assert.Equal(value, item.
Text
);
8102
Assert.Equal(value, item.
Text
);
8108
Assert.Equal(value, item.
Text
);
8151
Assert.Equal(value, item.
Text
);
8160
Assert.Equal(value, item.
Text
);
8189
Assert.Equal(value, item.
Text
);
8195
Assert.Equal(value, item.
Text
);
8229
Assert.Equal(value, item.
Text
);
8238
Assert.Equal(value, item.
Text
);
8266
Assert.Equal("value", item.
Text
);
8271
Assert.Equal("value", item.
Text
);
8276
Assert.Empty(item.
Text
);
8282
Assert.Equal("value", item.
Text
);
System\Windows\Forms\ToolStripLabelTests.cs (6)
20
toolStripLabel.
Text
.Should().BeEmpty();
32
toolStripLabel.
Text
.Should().Be(text);
45
toolStripLabel.
Text
.Should().BeNull();
57
toolStripLabel.
Text
.Should().Be(text);
71
toolStripLabel.
Text
.Should().Be(text);
87
toolStripLabel.
Text
.Should().Be(text);
System\Windows\Forms\ToolStripMenuItemTests.cs (10)
94
Assert.Empty(item.
Text
?? string.Empty);
196
itemWithImage.
Text
.Should().BeNull();
199
itemWithTextAndImage.
Text
.Should().Be(text);
214
item.
Text
.Should().Be(text);
232
item.
Text
.Should().Be(text);
248
item.
Text
.Should().Be(text);
251
item.DropDownItems[0].
Text
.Should().Be("SubItem1");
252
item.DropDownItems[1].
Text
.Should().Be("SubItem2");
347
clone.
Text
.Should().Be(original.
Text
);
System\Windows\Forms\ToolStripSplitButtonTests.cs (7)
81
_toolStripSplitButton.
Text
.Should().BeEmpty();
91
toolStripSplitButton.
Text
.Should().Be("Test");
102
toolStripSplitButton.
Text
.Should().BeNull();
113
toolStripSplitButton.
Text
.Should().Be("Test");
127
toolStripSplitButton.
Text
.Should().Be("Test");
144
toolStripSplitButton.
Text
.Should().Be("Test");
162
toolStripSplitButton.
Text
.Should().Be("Test");
System\Windows\Forms\ToolStripStatusLabelTests.cs (5)
30
label.
Text
.Should().Be(sampleText);
38
label.
Text
.Should().BeNull();
48
label.
Text
.Should().Be(sampleText);
61
label.
Text
.Should().Be(sampleText);
77
toolStripStatusLabel.
Text
.Should().Be("Sample Text");
System\Windows\Forms\ToolStripTests.cs (1)
4281
Assert.Equal(text, button.
Text
);