1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
22
public LinkCollection(LinkLabel owner) =>
_owner
= owner.OrThrowIfNull();
58 references to _owner
System.Windows.Forms (58)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (58)
28
return
_owner
._links[index];
32
_owner
._links[index] = value;
34
_owner
._links.Sort(s_linkComparer);
36
_owner
.InvalidateTextLayout();
37
_owner
.Invalidate();
84
public int Count =>
_owner
._links.Count;
120
if (
_owner
._links.Count == 1
124
_owner
._links.Clear();
125
_owner
.FocusLink = null;
128
Link l = new(
_owner
)
148
if (
_owner
._links.Count == 1
152
_owner
._links.Clear();
153
_owner
.FocusLink = null;
157
value!.Owner =
_owner
;
159
_owner
._links.Add(value);
161
if (
_owner
.AutoSize)
163
LayoutTransaction.DoLayout(
_owner
.ParentInternal,
_owner
, PropertyNames.Links);
164
_owner
.AdjustSize();
165
_owner
.Invalidate();
168
if (
_owner
.Links.Count > 1)
170
_owner
._links.Sort(s_linkComparer);
173
_owner
.ValidateNoOverlappingLinks();
174
_owner
.UpdateSelectability();
175
_owner
.InvalidateTextLayout();
176
_owner
.Invalidate();
178
if (
_owner
.Links.Count > 1)
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();
307
LayoutTransaction.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);
324
if (
_owner
._links is not null)
326
return
_owner
._links.GetEnumerator();
336
if (value.Owner !=
_owner
)
341
_owner
._links.Remove(value);
343
if (
_owner
.AutoSize)
345
LayoutTransaction.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();
357
if (
_owner
.FocusLink is null &&
_owner
._links.Count > 0)
359
_owner
.FocusLink =
_owner
._links[0];