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