PopupEventArgs(IWin32Window, Control, Boolean, Size) 建構函式

定義

初始化該 PopupEventArgs 類別的實例。

public:
 PopupEventArgs(System::Windows::Forms::IWin32Window ^ associatedWindow, System::Windows::Forms::Control ^ associatedControl, bool isBalloon, System::Drawing::Size size);
public PopupEventArgs(System.Windows.Forms.IWin32Window associatedWindow, System.Windows.Forms.Control associatedControl, bool isBalloon, System.Drawing.Size size);
public PopupEventArgs(System.Windows.Forms.IWin32Window? associatedWindow, System.Windows.Forms.Control? associatedControl, bool isBalloon, System.Drawing.Size size);
new System.Windows.Forms.PopupEventArgs : System.Windows.Forms.IWin32Window * System.Windows.Forms.Control * bool * System.Drawing.Size -> System.Windows.Forms.PopupEventArgs
Public Sub New (associatedWindow As IWin32Window, associatedControl As Control, isBalloon As Boolean, size As Size)

參數

associatedWindow
IWin32Window

那是 IWin32Window 工具提示必然會被綁定的。

associatedControl
Control

也就是 Control 這個工具提示被建立的目的。

isBalloon
Boolean

true 用以表示相關的工具提示視窗呈現氣泡式外觀;否則, false 則表示工具提示視窗呈現標準矩形外觀。

size
Size

關於 Size 工具提示。

備註

建構子的 PopupEventArgs 參數用來初始化對應且名稱相似的屬性。 associatedControl參數可以是null,若擁有視窗不是型別Control

適用於

另請參閱