57 references to LinkState
System.Windows.Forms (57)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (20)
204private LinkState LinkState 206get => Properties.GetValueOrDefault(s_propLinkCellLinkState, LinkState.Normal); 207set => Properties.AddOrRemoveValue(s_propLinkCellLinkState, value, defaultValue: LinkState.Normal); 699LinkState != LinkState.Normal; 705if ((LinkState & LinkState.Hover) == 0) 712if ((LinkState & LinkState.Hover) != 0) 758LinkState |= LinkState.Active; 778if (LinkState != LinkState.Normal) 780LinkState = LinkState.Normal; 796if ((LinkState & LinkState.Hover) == 0) 798LinkState |= LinkState.Hover; 811if ((LinkState & LinkState.Hover) != 0) 813LinkState &= ~LinkState.Hover; 953bool isActive = (LinkState & LinkState.Active) == LinkState.Active; 973LinkState == LinkState.Hover ? hoverFont : linkFont); 989LinkState == LinkState.Hover ? hoverFont : linkFont); 1007if ((LinkState & LinkState.Active) == LinkState.Active) 1030LinkState == LinkState.Hover ? hoverFont : linkFont,
System\Windows\Forms\Controls\Labels\LinkLabel.cs (27)
816if ((link.State & LinkState.Hover) == LinkState.Hover 817|| (link.State & LinkState.Active) == LinkState.Active) 819bool activeChanged = (link.State & LinkState.Active) == LinkState.Active; 820link.State &= ~(LinkState.Hover | LinkState.Active); 844if ((_links[i].State & LinkState.Hover) == LinkState.Hover) 846_links[i].State |= LinkState.Active; 878if ((_links[i].State & LinkState.Active) == LinkState.Active) 880_links[i].State &= ~LinkState.Active; 906if ((link.State & LinkState.Hover) == LinkState.Hover) 922hoverLink.State &= ~LinkState.Hover; 927pointIn.State |= LinkState.Hover; 1198_links[i].State &= ~(LinkState.Hover | LinkState.Active); 1257LinkState linkState = link.State; 1259Font font = (linkState & LinkState.Hover) == LinkState.Hover ? hoverLinkFont : linkFont; 1264if ((linkState & LinkState.Active) == LinkState.Active) 1268else if ((linkState & LinkState.Visited) == LinkState.Visited)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.cs (10)
63if ((State & (LinkState.Hover | LinkState.Active)) != 0) 65State &= ~(LinkState.Hover | LinkState.Active); 118internal LinkState State { get; set; } = LinkState.Normal; 163get => (State & LinkState.Visited) == LinkState.Visited; 170State |= LinkState.Visited; 174State &= ~LinkState.Visited;