1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
22public LinkCollection(LinkLabel owner) => _owner = owner.OrThrowIfNull();
58 references to _owner
System.Windows.Forms (58)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (58)
28return _owner._links[index]; 32_owner._links[index] = value; 34_owner._links.Sort(s_linkComparer); 36_owner.InvalidateTextLayout(); 37_owner.Invalidate(); 84public int Count => _owner._links.Count; 120if (_owner._links.Count == 1 124_owner._links.Clear(); 125_owner.FocusLink = null; 128Link l = new(_owner) 148if (_owner._links.Count == 1 152_owner._links.Clear(); 153_owner.FocusLink = null; 157value!.Owner = _owner; 159_owner._links.Add(value); 161if (_owner.AutoSize) 163LayoutTransaction.DoLayout(_owner.ParentInternal, _owner, PropertyNames.Links); 164_owner.AdjustSize(); 165_owner.Invalidate(); 168if (_owner.Links.Count > 1) 170_owner._links.Sort(s_linkComparer); 173_owner.ValidateNoOverlappingLinks(); 174_owner.UpdateSelectability(); 175_owner.InvalidateTextLayout(); 176_owner.Invalidate(); 178if (_owner.Links.Count > 1) 214return _owner._links.Contains(link); 239return _owner._links.IndexOf(link); 302bool doLayout = _owner._links.Count > 0 && _owner.AutoSize; 303_owner._links.Clear(); 307LayoutTransaction.DoLayout(_owner.ParentInternal, _owner, PropertyNames.Links); 308_owner.AdjustSize(); 309_owner.Invalidate(); 312_owner.UpdateSelectability(); 313_owner.InvalidateTextLayout(); 314_owner.Invalidate(); 319((ICollection)_owner._links).CopyTo(dest, index); 324if (_owner._links is not null) 326return _owner._links.GetEnumerator(); 336if (value.Owner != _owner) 341_owner._links.Remove(value); 343if (_owner.AutoSize) 345LayoutTransaction.DoLayout(_owner.ParentInternal, _owner, PropertyNames.Links); 346_owner.AdjustSize(); 347_owner.Invalidate(); 350_owner._links.Sort(s_linkComparer); 352_owner.ValidateNoOverlappingLinks(); 353_owner.UpdateSelectability(); 354_owner.InvalidateTextLayout(); 355_owner.Invalidate(); 357if (_owner.FocusLink is null && _owner._links.Count > 0) 359_owner.FocusLink = _owner._links[0];