PopupEventArgs(IWin32Window, Control, Boolean, Size) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化該 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 工具提示必然會被綁定的。
- isBalloon
- Boolean
true 用以表示相關的工具提示視窗呈現氣泡式外觀;否則, false 則表示工具提示視窗呈現標準矩形外觀。
備註
建構子的 PopupEventArgs 參數用來初始化對應且名稱相似的屬性。
associatedControl參數可以是null,若擁有視窗不是型別Control。