67 references to links
System.Windows.Forms (67)
winforms\Managed\System\WinForms\LinkLabel.cs (67)
232
if (
links
.Count == 0) {
235
return new LinkArea(((Link)
links
[0]).Start, ((Link)
links
[0]).Length);
240
links
.Clear();
255
((Link)
links
[0]).Start = value.Start;
256
((Link)
links
[0]).Length = value.Length;
361
if (
links
.Count == 0) {
365
return((Link)
links
[0]).Visited;
370
if (
links
.Count == 0) {
373
((Link)
links
[0]).Visited = value;
710
if (this.
links
!= null && this.
links
.Count == 1) {
782
if (
links
== null ||
links
.Count != 1 || Text == null) {
802
foreach (Link link in
links
) {
973
foreach (Link link in
links
) {
1003
for (int i=0; i<
links
.Count; i++) {
1004
if ((((Link)
links
[i]).State & LinkState.Hover) == LinkState.Hover) {
1005
((Link)
links
[i]).State |= LinkState.Active;
1008
if (((Link)
links
[i]).Enabled) {
1009
FocusLink = (Link)
links
[i];
1039
for (int i=0; i<
links
.Count; i++) {
1040
if ((((Link)
links
[i]).State & LinkState.Active) == LinkState.Active) {
1041
((Link)
links
[i]).State &= (~LinkState.Active);
1042
InvalidateLink((Link)
links
[i]);
1069
foreach (Link link in
links
) {
1170
RectangleF[] rects = ((Link)
links
[0]).VisualRegion.GetRegionScans(e.Graphics.Transform);
1197
foreach (Link link in
links
) {
1212
foreach (Link link in
links
) {
1346
for (int i=0; i<
links
.Count; i++) {
1347
((Link)
links
[i]).State &= ~(LinkState.Hover | LinkState.Active);
1583
for (int i=0; i<
links
.Count; i++) {
1584
if (
links
[i] == focusLink) {
1641
if (focusIndex < 0 || focusIndex >=
links
.Count) {
1710
if (
links
.Count > 0) {
1716
focusIndex =
links
.IndexOf(FocusLink);
1730
newFocus = GetNextLinkIndex(
links
.Count, forward); // Count, so "next" will be Count-1
1735
FocusLink = (Link)
links
[newFocus];
1770
if (
links
.Count == 1) {
1822
for (int i=0; i<
links
.Count; i++) {
1823
if (
links
[i] == focusLink) {
1836
for (int x=0; x<
links
.Count; x++) {
1838
Link left = (Link)
links
[x];
1843
for (int y=x; y<
links
.Count; y++) {
1845
Link right = (Link)
links
[y];
1984
return(Link)owner.
links
[index];
1987
owner.
links
[index] = value;
1989
owner.
links
.Sort(LinkLabel.linkComparer);
2043
return owner.
links
.Count;
2114
if (owner.
links
.Count == 1
2118
owner.
links
.Clear();
2142
if (owner.
links
.Count == 1
2146
owner.
links
.Clear();
2153
owner.
links
.Add(value);
2162
owner.
links
.Sort(LinkLabel.linkComparer);
2205
return owner.
links
.Contains(link);
2232
return owner.
links
.IndexOf(link);
2292
bool doLayout = this.owner.
links
.Count > 0 && this.owner.AutoSize;
2293
owner.
links
.Clear();
2309
owner.
links
.CopyTo(dest, index);
2317
if (owner.
links
!= null) {
2318
return owner.
links
.GetEnumerator();
2335
owner.
links
.Remove(value);
2343
owner.
links
.Sort(LinkLabel.linkComparer);
2350
if (owner.FocusLink == null && owner.
links
.Count > 0) {
2351
owner.FocusLink = (Link)owner.
links
[0];
2557
owner.
links
.Sort(LinkLabel.linkComparer);