68 references to _links
System.Windows.Forms (68)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (46)
165
get =>
_links
.Count == 0
167
: new LinkArea(
_links
[0].Start,
_links
[0].Length);
172
_links
.Clear();
191
_links
[0].Start = value.Start;
192
_links
[0].Length = value.Length;
265
get =>
_links
.Count != 0 &&
_links
[0].Visited;
273
if (
_links
.Count == 0)
278
_links
[0].Visited = value;
434
foreach (Link link in
_links
)
589
if (
_links
is not null &&
_links
.Count == 1)
653
if (
_links
is null ||
_links
.Count != 1 || Text is null)
676
foreach (Link link in
_links
)
814
foreach (Link link in
_links
)
842
for (int i = 0; i <
_links
.Count; i++)
844
if ((
_links
[i].State & LinkState.Hover) == LinkState.Hover)
846
_links
[i].State |= LinkState.Active;
849
if (
_links
[i].Enabled)
851
FocusLink =
_links
[i];
876
for (int i = 0; i <
_links
.Count; i++)
878
if ((
_links
[i].State & LinkState.Active) == LinkState.Active)
880
_links
[i].State &= ~LinkState.Active;
881
InvalidateLink(
_links
[i]);
904
foreach (Link link in
_links
)
1031
foreach (Link link in
_links
)
1053
else if (
_links
[0].VisualRegion?.GetRegionScans(e.GraphicsInternal.Transform) is { } regionRectangles
1087
foreach (Link link in
_links
)
1196
for (int i = 0; i <
_links
.Count; i++)
1198
_links
[i].State &= ~(LinkState.Hover | LinkState.Active);
1451
for (int i = 0; i <
_links
.Count; i++)
1453
if (
_links
[i] == _focusLink)
1523
return focusIndex < 0 || focusIndex >=
_links
.Count ? -1 : focusIndex;
1555
if (directed &&
_links
.Count > 0)
1561
focusIndex =
_links
.IndexOf(FocusLink);
1578
newFocus = GetNextLinkIndex(
_links
.Count, forward);
1584
FocusLink =
_links
[newFocus];
1606
if (
_links
.Count == 1)
1646
for (int i = 0; i <
_links
.Count; i++)
1648
if (
_links
[i] == focusLink)
1667
for (int x = 0; x <
_links
.Count; x++)
1669
Link left =
_links
[x];
1675
for (int y = x; y <
_links
.Count; y++)
1679
Link right =
_links
[y];
System\Windows\Forms\Controls\Labels\LinkLabel.Link.cs (1)
144
Owner.
_links
.Sort(s_linkComparer);
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (21)
28
return _owner.
_links
[index];
32
_owner.
_links
[index] = value;
34
_owner.
_links
.Sort(s_linkComparer);
84
public int Count => _owner.
_links
.Count;
120
if (_owner.
_links
.Count == 1
124
_owner.
_links
.Clear();
148
if (_owner.
_links
.Count == 1
152
_owner.
_links
.Clear();
159
_owner.
_links
.Add(value);
170
_owner.
_links
.Sort(s_linkComparer);
214
return _owner.
_links
.Contains(link);
239
return _owner.
_links
.IndexOf(link);
302
bool doLayout = _owner.
_links
.Count > 0 && _owner.AutoSize;
303
_owner.
_links
.Clear();
319
((ICollection)_owner.
_links
).CopyTo(dest, index);
324
if (_owner.
_links
is not null)
326
return _owner.
_links
.GetEnumerator();
341
_owner.
_links
.Remove(value);
350
_owner.
_links
.Sort(s_linkComparer);
357
if (_owner.FocusLink is null && _owner.
_links
.Count > 0)
359
_owner.FocusLink = _owner.
_links
[0];