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