4 instantiations of TipInfo
System.Windows.Forms (4)
System\Windows\Forms\ToolTip\ToolTip.cs (4)
1207
TipInfo info =
new
(caption, TipInfo.Type.Auto);
1348
tipInfo = new
TipInfo
(text, TipInfo.Type.SemiAbsolute);
1810
tipInfo = new
TipInfo
(text, type);
1834
tipInfo = new
TipInfo
(text, type);
35 references to TipInfo
System.Windows.Forms (35)
System\Windows\Forms\ToolTip\ToolTip.cs (35)
36
private readonly Dictionary<Control,
TipInfo
> _tools = [];
151
return _tools.TryGetValue(tool, out
TipInfo
? tipInfo) ? tipInfo.Caption : null;
312
if (_tools.TryGetValue(control, out
TipInfo
? tt) && (tt.TipType &
TipInfo
.Type.SemiAbsolute) != 0)
1019
return _tools.TryGetValue(control, out
TipInfo
? tipInfo)
1207
TipInfo
info = new(caption,
TipInfo
.Type.Auto);
1214
private void SetToolTipInternal(Control control,
TipInfo
info)
1337
SetTool(window, text,
TipInfo
.Type.SemiAbsolute, p);
1346
if (!_tools.TryGetValue(associatedControl, out
TipInfo
? tipInfo))
1348
tipInfo = new TipInfo(text,
TipInfo
.Type.SemiAbsolute);
1352
tipInfo.TipType |=
TipInfo
.Type.SemiAbsolute;
1414
SetTool(window, text,
TipInfo
.Type.Absolute, new Point(pointX, pointY));
1433
SetTool(window, text,
TipInfo
.Type.Absolute, new Point(pointX, pointY));
1451
SetTool(window, text,
TipInfo
.Type.Absolute, new Point(pointX, pointY));
1469
SetTool(window, text,
TipInfo
.Type.Absolute, new Point(pointX, pointY));
1490
SetTool(ownerWindow, text,
TipInfo
.Type.Absolute, new Point(pointX, pointY));
1502
if ((tool is Control toolAsControl && _tools.TryGetValue(toolAsControl, out
TipInfo
? tipInfo)) ||
1790
private void SetTool(IWin32Window window, string? text,
TipInfo
.Type type, Point position)
1799
if (type is
TipInfo
.Type.Absolute or
TipInfo
.Type.SemiAbsolute)
1808
if (!_tools.TryGetValue(tool, out
TipInfo
? tipInfo))
1832
if (!_tools.TryGetValue(windowAsControl, out
TipInfo
? tipInfo))
1851
if (type is
TipInfo
.Type.Absolute or
TipInfo
.Type.SemiAbsolute)
1977
if (window is not Control windowAsControl || !_tools.TryGetValue(windowAsControl, out
TipInfo
? tipInfo))
2150
TipInfo
? tipInfo = null;
2169
if ((tipInfo!.TipType &
TipInfo
.Type.Auto) != 0 && _window is not null)
2175
if (((tipInfo.TipType &
TipInfo
.Type.SemiAbsolute) != 0) && tipInfo.Position == Point.Empty)
2197
else if ((tipInfo.TipType &
TipInfo
.Type.SemiAbsolute) != 0 && tipInfo.Position != Point.Empty)
2226
if (window is not Control control || !_tools.TryGetValue(control, out
TipInfo
? tipInfo))
2232
if ((tipInfo.TipType &
TipInfo
.Type.Auto) != 0 || (tipInfo.TipType &
TipInfo
.Type.SemiAbsolute) != 0)
2240
if ((tipInfo.TipType &
TipInfo
.Type.Auto) == 0)
2258
tipInfo.TipType =
TipInfo
.Type.Auto;