76 references to Links
PresentationUI (2)
MS\Internal\Documents\RMPermissions.cs (2)
73
requestFromLabel.
Links
[0].Description = referralName;
84
requestFromLabel.
Links
.Clear();
System.Windows.Forms (32)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (18)
188
Links
.Add(new Link(this));
275
Links
.Add(new Link(this));
522
Links
.Clear();
523
Links
.Add(new Link(0, -1)); // default 'magic' link.
538
for (int i = 0; i <
Links
.Count; i++)
540
Link link =
Links
[i];
545
Links
[i].VisualRegion = textRegions[regionIndex];
591
Links
[0].VisualRegion = visualRegion;
629
List<CharacterRange> ranges = new(
Links
.Count + 1);
631
foreach (Link link in
Links
)
1384
if (FocusLink is null &&
Links
.Count > 0)
1387
foreach (Link link in
Links
)
1464
FocusLink =
Links
[focusIndex];
1487
if (focusIndex <
Links
.Count)
1489
test =
Links
[focusIndex];
1509
test =
Links
[focusIndex];
1609
return
Links
[0].Start != 0 ||
Links
[0]._length != -1;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
58
private int CurrentIndex => _owningLinkLabel.
Links
.IndexOf(_owningLink);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (2)
168
if (_owner.
Links
.Count > 1)
178
if (_owner.
Links
.Count > 1)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (6)
28
=> !this.TryGetOwnerAs(out LinkLabel? owner) ? null : owner.
Links
.Count != 0
29
? owner.
Links
[0].AccessibleObject
32
=> !this.TryGetOwnerAs(out LinkLabel? owner) ? null : owner.
Links
.Count != 0
33
? owner.
Links
[^1].AccessibleObject
42
? owner.
Links
[index].AccessibleObject
47
public override int GetChildCount() => this.TryGetOwnerAs(out LinkLabel? owner) ? owner.
Links
.Count : 0;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (3)
179
Label.
Links
.Clear();
205
Label.
Links
.Clear();
237
LinkLabel.Link link = Label.
Links
.Add(links[i].X, links[i].Y, _verbs[i]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
607
CreateNewLink.
Links
.Clear();
608
CreateNewLink.
Links
.Add(0, editor.Text.Length, editor);
System.Windows.Forms.Tests (42)
LinkLabelTests.cs (7)
116
_linkLabel.
Links
.Count.Should().Be(1);
117
_linkLabel.
Links
[0].Visited.Should().BeTrue();
123
_linkLabel.
Links
.Add(new LinkLabel.Link(_linkLabel) { Visited = false });
125
_linkLabel.
Links
[0].Visited.Should().BeTrue();
128
_linkLabel.
Links
[0].Visited.Should().BeFalse();
198
_linkLabel.
Links
.Add(new LinkLabel.Link(_linkLabel) { Visited = true });
211
label.
Links
.Add(link);
System\Windows\Forms\AccessibleObjects\LinkLabel.Link.LinkAccessibleObjectTests.cs (27)
34
linkLabel.
Links
.Add(new());
39
LinkAccessibleObject linkAccessibleObject = linkLabel.
Links
[index].AccessibleObject;
55
Link link = linkLabel.
Links
[0];
69
linkLabel.
Links
.Add(new());
72
AccessibleObject linkLabelAccessibleObject1 = linkLabel.
Links
[0].AccessibleObject;
73
AccessibleObject linkLabelAccessibleObject2 = linkLabel.
Links
[1].AccessibleObject;
74
AccessibleObject linkLabelAccessibleObject3 = linkLabel.
Links
[2].AccessibleObject;
75
AccessibleObject linkLabelAccessibleObject4 = linkLabel.
Links
[3].AccessibleObject;
91
linkLabel.
Links
.Add(new());
94
AccessibleObject linkLabelAccessibleObject1 = linkLabel.
Links
[0].AccessibleObject;
95
AccessibleObject linkLabelAccessibleObject2 = linkLabel.
Links
[1].AccessibleObject;
96
AccessibleObject linkLabelAccessibleObject3 = linkLabel.
Links
[2].AccessibleObject;
97
AccessibleObject linkLabelAccessibleObject4 = linkLabel.
Links
[3].AccessibleObject;
119
linkLabel.
Links
.Add(new());
122
LinkAccessibleObject linkAccessibleObject = linkLabel.
Links
[linkIndex].AccessibleObject;
133
LinkAccessibleObject linkAccessibleObject = linkLabel.
Links
[0].AccessibleObject;
146
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
160
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
172
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
184
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
199
LinkAccessibleObject linkAccessibleObject = linkLabel.
Links
[0].AccessibleObject;
216
linkLabel.
Links
.Add(new(start, name.Length));
220
for (int index = 0; index < linkLabel.
Links
.Count; index++)
222
string actual = linkLabel.
Links
[index].AccessibleObject.Name;
234
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
246
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
273
LinkAccessibleObject accessibleObject = linkLabel.
Links
[0].AccessibleObject;
System\Windows\Forms\AccessibleObjects\LinkLabel.LinkLabelAccessibleObjectTests.cs (8)
86
linkLabel.
Links
.Add(new());
108
linkLabel.
Links
.Add(new());
111
LinkAccessibleObject expected = linkLabel.
Links
[childIndex].AccessibleObject;
127
linkLabel.
Links
.Add(new());
156
linkLabel.
Links
.Add(new());
159
Assert.Equal(linkLabel.
Links
[0].AccessibleObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild));
171
linkLabel.
Links
.Add(new());
174
Assert.Equal(linkLabel.
Links
[^1].AccessibleObject, accessibleObject.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild));