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