43 references to ToolTipIcon
System.Windows.Forms (12)
System\Windows\Forms\NotifyIcon.cs (8)
42
private
ToolTipIcon
_balloonTipIcon;
103
[DefaultValue(
ToolTipIcon
.None)]
105
public
ToolTipIcon
BalloonTipIcon
545
public unsafe void ShowBalloonTip(int timeout, string tipTitle, string tipText,
ToolTipIcon
tipIcon)
583
case
ToolTipIcon
.Info:
586
case
ToolTipIcon
.Warning:
589
case
ToolTipIcon
.Error:
592
case
ToolTipIcon
.None:
System\Windows\Forms\ToolTip\ToolTip.cs (4)
48
private
ToolTipIcon
_toolTipIcon =
ToolTipIcon
.None;
421
[DefaultValue(
ToolTipIcon
.None)]
423
public
ToolTipIcon
ToolTipIcon
System.Windows.Forms.Tests (31)
System\Windows\Forms\NotifyIconTests.cs (25)
16
Assert.Equal(
ToolTipIcon
.None, notifyIcon.BalloonTipIcon);
33
Assert.Equal(
ToolTipIcon
.None, notifyIcon.BalloonTipIcon);
52
[EnumData<
ToolTipIcon
>]
53
public void NotifyIcon_BalloonTipIcon_Set_GetReturnsExpected(
ToolTipIcon
value)
67
[InvalidEnumData<
ToolTipIcon
>]
68
public void NotifyIcon_BalloonTipIcon_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolTipIcon
value)
728
Assert.Equal(
ToolTipIcon
.None, notifyIcon.BalloonTipIcon);
742
Assert.Equal(
ToolTipIcon
.None, notifyIcon.BalloonTipIcon);
773
BalloonTipIcon =
ToolTipIcon
.Error,
786
Assert.Equal(
ToolTipIcon
.Error, notifyIcon.BalloonTipIcon);
799
Assert.Equal(
ToolTipIcon
.Error, notifyIcon.BalloonTipIcon);
814
foreach (
ToolTipIcon
tipIcon in Enum.GetValues(typeof(
ToolTipIcon
)))
822
public void NotifyIcon_ShowBalloonTip_InvokeInt_Success(int timeout,
ToolTipIcon
tipIcon)
835
public void NotifyIcon_ShowBalloonTip_InvokeIntAdded_Success(int timeout,
ToolTipIcon
tipIcon)
851
public void NotifyIcon_ShowBalloonTip_InvokeIntAddedDesignMode_Success(int timeout,
ToolTipIcon
tipIcon)
876
public void NotifyIcon_ShowBalloonTip_InvokeIntDisposed_Success(int timeout,
ToolTipIcon
tipIcon)
894
public void NotifyIcon_ShowBalloonTip_InvokeIntStringStringToolTipIcon_Success(int timeout,
ToolTipIcon
tipIcon)
902
public void NotifyIcon_ShowBalloonTip_InvokeIntStringStringToolTipIconAdded_Success(int timeout,
ToolTipIcon
tipIcon)
915
public void NotifyIcon_ShowBalloonTip_InvokeIntStringStringToolTipIconDisposed_Success(int timeout,
ToolTipIcon
tipIcon)
929
public void NotifyIcon_ShowBalloonTip_InvokeIntStringStringToolTipIconAddedDesignMode_Success(int timeout,
ToolTipIcon
tipIcon)
954
Assert.Throws<ArgumentOutOfRangeException>("timeout", () => notifyIcon.ShowBalloonTip(-1, "Title", "Text",
ToolTipIcon
.Error));
966
Assert.Throws<ArgumentException>(() => notifyIcon.ShowBalloonTip(0, "Title", tipText,
ToolTipIcon
.Error));
970
[InvalidEnumData<
ToolTipIcon
>]
971
public void NotifyIcon_ShowBalloonTip_InvokeInvalidTipIcon_ThrowsInvalidEnumArgumentException(
ToolTipIcon
tipIcon)
System\Windows\Forms\ToolTipTests.cs (6)
36
Assert.Equal(
ToolTipIcon
.None, toolTip.ToolTipIcon);
66
Assert.Equal(
ToolTipIcon
.None, toolTip.ToolTipIcon);
542
[EnumData<
ToolTipIcon
>]
543
public void ToolTip_ToolTipIcon_Set_GetReturnsExpected(
ToolTipIcon
value)
557
[InvalidEnumData<
ToolTipIcon
>]
558
public void ToolTip_ToolTipIcon_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolTipIcon
value)