38 writes to Text
Accessibility_Core_App (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()
System.Windows.Forms (2)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (2)
1352
node.
Text
= _text;
1503
Text
= serializationInfo.GetString(entry.Name);
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
304
TreeNode node = new(control) {
Text
= testText };
497
TreeNode node = new(control) {
Text
= testText };
System\Windows\Forms\TreeNodeCollectionTests.cs (6)
225
Text
= "8"
230
Text
= "5"
235
Text
= "7"
272
Text
= "8"
277
Text
= "5"
282
Text
= "7"
System\Windows\Forms\TreeNodeTests.cs (10)
4363
Text
= value
4368
node.
Text
= value;
4393
node.
Text
= value;
4398
node.
Text
= value;
4421
node.
Text
= value;
4429
node.
Text
= value;
4452
node.
Text
= value;
4477
node.
Text
= value;
4482
node.
Text
= value;
4719
Text
= nodeName,
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";
66 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)
1502
case nameof(
Text
):
2060
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)
56
throw new ArgumentException(string.Format(SR.OnlyOneControl, value.
Text
), nameof(value));
303
throw new ArgumentException(string.Format(SR.OnlyOneControl, node.
Text
), nameof(node));
439
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)
1609
_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 (40)
SerializableTypesTests.cs (3)
368
Assert.Equal("node1", result.
Text
);
372
Assert.Equal("node2", result.FirstNode.
Text
);
373
Assert.Equal("node3", result.LastNode.
Text
);
System\Windows\Forms\AccessibleObjects\TreeNode.TreeNodeAccessibleObjectTests.cs (2)
484
Assert.Equal("Node2", control.SelectedNode?.
Text
);
487
Assert.Equal("Node4", control.SelectedNode?.
Text
);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
115
Assert.Equal(treeView.Nodes[0].
Text
, accessibilityObject.Name);
System\Windows\Forms\TreeNodeCollectionTests.cs (5)
52
Assert.Equal(expectedText, treeNode.
Text
);
403
treeNode.
Text
.Should().Be(text);
418
treeNode.
Text
.Should().Be(text);
433
treeNode.
Text
.Should().Be(text);
479
treeNode.
Text
.Should().Be(text);
System\Windows\Forms\TreeNodeConverterTests.cs (2)
39
arguments[0].Should().Be(node.
Text
);
45
text.Should().Be("TreeNode: " + node.
Text
);
System\Windows\Forms\TreeNodeTests.cs (19)
47
Assert.Empty(node.
Text
);
87
Assert.Equal(expectedText, node.
Text
);
135
Assert.Equal(expectedText, node.
Text
);
178
Assert.Equal(expectedText, node.
Text
);
226
Assert.Equal(expectedText, node.
Text
);
4365
Assert.Equal(expected, node.
Text
);
4369
Assert.Equal(expected, node.
Text
);
4394
Assert.Equal(expected, node.
Text
);
4399
Assert.Equal(expected, node.
Text
);
4422
Assert.Equal(expected, node.
Text
);
4430
Assert.Equal(expected, node.
Text
);
4478
Assert.Equal(expected, node.
Text
);
4483
Assert.Equal(expected, node.
Text
);
4727
clonedNode.
Text
.Should().Be(treeNode.
Text
);
4730
clonedNode.Nodes[0].
Text
.Should().Be(treeNode.Nodes[0].
Text
);
4731
clonedNode.Nodes[1].
Text
.Should().Be(treeNode.Nodes[1].
Text
);
System\Windows\Forms\TreeViewTests.cs (8)
7340
childNode1.
Text
.Should().Be("child");
7343
childNode1.NextVisibleNode.
Text
.Should().Be("a0");
7346
childNode2.NextVisibleNode.
Text
.Should().Be("b0");
7349
childNode3.NextVisibleNode.
Text
.Should().Be("c0");
7352
childNode4.NextVisibleNode.
Text
.Should().Be("a1");
7355
childNode5.NextVisibleNode.
Text
.Should().Be("b1");
7358
childNode6.NextVisibleNode.
Text
.Should().Be("c1");
7361
childNode7.NextVisibleNode.
Text
.Should().Be("a2");