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