38 writes to Text
Accessibility_Core_App (9)
CommonControl2.Designer.cs (8)
179treeNode1.Text = "Node10WinformsTeam"; 181treeNode2.Text = "Node11"; 183treeNode3.Text = "Node1"; 185treeNode4.Text = "Node20"; 187treeNode5.Text = "Node2"; 189treeNode6.Text = "Node0"; 191treeNode7.Text = "Node4"; 193treeNode8.Text = "Node3";
DataBindingExample.cs (1)
79Text = dataSet.Tables[0].Rows[i]["StuName"].ToString()
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1352node.Text = _text; 1503Text = serializationInfo.GetString(entry.Name);
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
304TreeNode node = new(control) { Text = testText }; 497TreeNode node = new(control) { Text = testText };
System\Windows\Forms\TreeNodeCollectionTests.cs (6)
225Text = "8" 230Text = "5" 235Text = "7" 272Text = "8" 277Text = "5" 282Text = "7"
System\Windows\Forms\TreeNodeTests.cs (10)
4363Text = value 4368node.Text = value; 4393node.Text = value; 4398node.Text = value; 4421node.Text = value; 4429node.Text = value; 4452node.Text = value; 4477node.Text = value; 4482node.Text = value; 4719Text = nodeName,
WinFormsControlsTest (9)
ScrollableControls.Designer.cs (9)
385treeNode1.Text = "Node8"; 387treeNode2.Text = "Node7"; 389treeNode3.Text = "Node6"; 391treeNode4.Text = "Node5"; 393treeNode5.Text = "Node4"; 395treeNode6.Text = "Node3"; 397treeNode7.Text = "Node2"; 399treeNode8.Text = "Node1"; 401treeNode9.Text = "Node0";
66 references to Text
System.Windows.Forms (22)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (8)
20[DefaultProperty(nameof(Text))] 1129string nodeText = node.Text; 1138if (compare.Compare(_children[_childCount - 1].Text, nodeText) <= 0) 1148if (compare.Compare(_children[iT].Text, nodeText) <= 0) 1220if (compare.Compare(_children[j].Text, _children[min].Text) <= 0) 1502case nameof(Text): 2060si.AddValue(nameof(Text), _text);
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (2)
136public override string? Name => _owningTreeNode.Text; 269public override string? Value => _owningTreeNode.Text;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
56throw new ArgumentException(string.Format(SR.OnlyOneControl, value.Text), nameof(value)); 303throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node)); 439throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node));
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (4)
53args = [node.Text]; 62args = [node.Text, nodesArray]; 77node.Text, 97node.Text,
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2828Size textSize = TextRenderer.MeasureText(node.Text, node.TreeView!.Font); 2848TextRenderer.DrawText(g, node.Text, font, bounds, color, TextFormatFlags.Default); 2855TextRenderer.DrawText(g, node.Text, font, bounds, color, TextFormatFlags.Default); 2967tipText = tn.Text;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
227itemNode.Text,
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1609_helpTextCtrl.Text = string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.Text);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
160newNode.Name = newNode.Text; 165newNode.Name = newNode.Text; 451_label2.Text = string.Format(SR.CollectionEditorProperties, _treeView1.SelectedNode.Text);
System.Windows.Forms.Tests (40)
SerializableTypesTests.cs (3)
368Assert.Equal("node1", result.Text); 372Assert.Equal("node2", result.FirstNode.Text); 373Assert.Equal("node3", result.LastNode.Text);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
484Assert.Equal("Node2", control.SelectedNode?.Text); 487Assert.Equal("Node4", control.SelectedNode?.Text);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
115Assert.Equal(treeView.Nodes[0].Text, accessibilityObject.Name);
System\Windows\Forms\TreeNodeCollectionTests.cs (5)
52Assert.Equal(expectedText, treeNode.Text); 403treeNode.Text.Should().Be(text); 418treeNode.Text.Should().Be(text); 433treeNode.Text.Should().Be(text); 479treeNode.Text.Should().Be(text);
System\Windows\Forms\TreeNodeConverterTests.cs (2)
39arguments[0].Should().Be(node.Text); 45text.Should().Be("TreeNode: " + node.Text);
System\Windows\Forms\TreeNodeTests.cs (19)
47Assert.Empty(node.Text); 87Assert.Equal(expectedText, node.Text); 135Assert.Equal(expectedText, node.Text); 178Assert.Equal(expectedText, node.Text); 226Assert.Equal(expectedText, node.Text); 4365Assert.Equal(expected, node.Text); 4369Assert.Equal(expected, node.Text); 4394Assert.Equal(expected, node.Text); 4399Assert.Equal(expected, node.Text); 4422Assert.Equal(expected, node.Text); 4430Assert.Equal(expected, node.Text); 4478Assert.Equal(expected, node.Text); 4483Assert.Equal(expected, node.Text); 4727clonedNode.Text.Should().Be(treeNode.Text); 4730clonedNode.Nodes[0].Text.Should().Be(treeNode.Nodes[0].Text); 4731clonedNode.Nodes[1].Text.Should().Be(treeNode.Nodes[1].Text);
System\Windows\Forms\TreeViewTests.cs (8)
7340childNode1.Text.Should().Be("child"); 7343childNode1.NextVisibleNode.Text.Should().Be("a0"); 7346childNode2.NextVisibleNode.Text.Should().Be("b0"); 7349childNode3.NextVisibleNode.Text.Should().Be("c0"); 7352childNode4.NextVisibleNode.Text.Should().Be("a1"); 7355childNode5.NextVisibleNode.Text.Should().Be("b1"); 7358childNode6.NextVisibleNode.Text.Should().Be("c1"); 7361childNode7.NextVisibleNode.Text.Should().Be("a2");