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 参数可以为 nullControl

适用于

另请参阅