38 writes to Text
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1349
node.
Text
= _text;
1500
Text
= serializationInfo.GetString(entry.Name);
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
306
TreeNode node = new(control) {
Text
= testText };
499
TreeNode node = new(control) {
Text
= testText };
System\Windows\Forms\TreeNodeCollectionTests.cs (6)
227
Text
= "8"
232
Text
= "5"
237
Text
= "7"
274
Text
= "8"
279
Text
= "5"
284
Text
= "7"
System\Windows\Forms\TreeNodeTests.cs (10)
4365
Text
= value
4370
node.
Text
= value;
4395
node.
Text
= value;
4400
node.
Text
= value;
4423
node.
Text
= value;
4431
node.
Text
= value;
4454
node.
Text
= value;
4479
node.
Text
= value;
4484
node.
Text
= value;
4721
Text
= nodeName,
TestPassApp (9)
CommonControl2.Designer.cs (8)
179
treeNode1.
Text
= "Node10WinformsTeam";
181
treeNode2.
Text
= "Node11";
183
treeNode3.
Text
= "Node1";
185
treeNode4.
Text
= "Node20";
187
treeNode5.
Text
= "Node2";
189
treeNode6.
Text
= "Node0";
191
treeNode7.
Text
= "Node4";
193
treeNode8.
Text
= "Node3";
DataBindingExample.cs (1)
79
Text
= dataSet.Tables[0].Rows[i]["StuName"].ToString()
WinFormsControlsTest (9)
ScrollableControls.Designer.cs (9)
385
treeNode1.
Text
= "Node8";
387
treeNode2.
Text
= "Node7";
389
treeNode3.
Text
= "Node6";
391
treeNode4.
Text
= "Node5";
393
treeNode5.
Text
= "Node4";
395
treeNode6.
Text
= "Node3";
397
treeNode7.
Text
= "Node2";
399
treeNode8.
Text
= "Node1";
401
treeNode9.
Text
= "Node0";
71 references to Text
System.Windows.Forms (22)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (8)
20
[DefaultProperty(nameof(
Text
))]
1129
string nodeText = node.
Text
;
1138
if (compare.Compare(_children[_childCount - 1].
Text
, nodeText) <= 0)
1148
if (compare.Compare(_children[iT].
Text
, nodeText) <= 0)
1220
if (compare.Compare(_children[j].
Text
, _children[min].
Text
) <= 0)
1499
case nameof(
Text
):
2055
si.AddValue(nameof(
Text
), _text);
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (2)
136
public override string? Name => _owningTreeNode.
Text
;
269
public override string? Value => _owningTreeNode.
Text
;
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
55
throw new ArgumentException(string.Format(SR.OnlyOneControl, value.
Text
), nameof(value));
302
throw new ArgumentException(string.Format(SR.OnlyOneControl, node.
Text
), nameof(node));
438
throw new ArgumentException(string.Format(SR.OnlyOneControl, node.
Text
), nameof(node));
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (4)
53
args = [node.
Text
];
62
args = [node.
Text
, nodesArray];
77
node.
Text
,
97
node.
Text
,
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2828
Size textSize = TextRenderer.MeasureText(node.
Text
, node.TreeView!.Font);
2848
TextRenderer.DrawText(g, node.
Text
, font, bounds, color, TextFormatFlags.Default);
2855
TextRenderer.DrawText(g, node.
Text
, font, bounds, color, TextFormatFlags.Default);
2967
tipText = tn.
Text
;
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
227
itemNode.
Text
,
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1606
_helpTextCtrl.Text = string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.
Text
);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
160
newNode.Name = newNode.
Text
;
165
newNode.Name = newNode.
Text
;
451
_label2.Text = string.Format(SR.CollectionEditorProperties, _treeView1.SelectedNode.
Text
);
System.Windows.Forms.Tests (45)
SerializableTypesTests.cs (3)
370
Assert.Equal("node1", result.
Text
);
374
Assert.Equal("node2", result.FirstNode.
Text
);
375
Assert.Equal("node3", result.LastNode.
Text
);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
486
Assert.Equal("Node2", control.SelectedNode?.
Text
);
489
Assert.Equal("Node4", control.SelectedNode?.
Text
);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
117
Assert.Equal(treeView.Nodes[0].
Text
, accessibilityObject.Name);
System\Windows\Forms\TreeNodeCollectionTests.cs (5)
54
Assert.Equal(expectedText, treeNode.
Text
);
405
treeNode.
Text
.Should().Be(text);
420
treeNode.
Text
.Should().Be(text);
435
treeNode.
Text
.Should().Be(text);
481
treeNode.
Text
.Should().Be(text);
System\Windows\Forms\TreeNodeConverterTests.cs (7)
40
arguments![0].Should().Be(node.
Text
);
45
result.Should().Be("TreeNode: " + node.
Text
);
71
args[0].Should().Be(node.
Text
);
88
args[0].Should().Be(parentNode.
Text
);
94
childNodes.Select(n => n.
Text
).Should().ContainInOrder("Child1", "Child2");
115
args[0].Should().Be(parentNode.
Text
);
122
childNodes.Single().
Text
.Should().Be("ChildA");
System\Windows\Forms\TreeNodeTests.cs (19)
49
Assert.Empty(node.
Text
);
89
Assert.Equal(expectedText, node.
Text
);
137
Assert.Equal(expectedText, node.
Text
);
180
Assert.Equal(expectedText, node.
Text
);
228
Assert.Equal(expectedText, node.
Text
);
4367
Assert.Equal(expected, node.
Text
);
4371
Assert.Equal(expected, node.
Text
);
4396
Assert.Equal(expected, node.
Text
);
4401
Assert.Equal(expected, node.
Text
);
4424
Assert.Equal(expected, node.
Text
);
4432
Assert.Equal(expected, node.
Text
);
4480
Assert.Equal(expected, node.
Text
);
4485
Assert.Equal(expected, node.
Text
);
4729
clonedNode.
Text
.Should().Be(treeNode.
Text
);
4732
clonedNode.Nodes[0].
Text
.Should().Be(treeNode.Nodes[0].
Text
);
4733
clonedNode.Nodes[1].
Text
.Should().Be(treeNode.Nodes[1].
Text
);
System\Windows\Forms\TreeViewTests.cs (8)
7342
childNode1.
Text
.Should().Be("child");
7345
childNode1.NextVisibleNode.
Text
.Should().Be("a0");
7348
childNode2.NextVisibleNode.
Text
.Should().Be("b0");
7351
childNode3.NextVisibleNode.
Text
.Should().Be("c0");
7354
childNode4.NextVisibleNode.
Text
.Should().Be("a1");
7357
childNode5.NextVisibleNode.
Text
.Should().Be("b1");
7360
childNode6.NextVisibleNode.
Text
.Should().Be("c1");
7363
childNode7.NextVisibleNode.
Text
.Should().Be("a2");