GrapeCity.Win.Components 名前空間 > BalloonTipInformation クラス : Size プロパティ |
次のサンプルコードは、このプロパティの使用方法を示します。
このサンプルコードは、GcBalloonTip クラスに示されている詳細なコード例の一部を抜粋したものです。
private void button7_Click(object sender, EventArgs e) { if (gcBalloonTip1.GetBalloonTipInformation(button7) == null) { BalloonTipInformation tipInfo = new BalloonTipInformation(); tipInfo.Text = "Show the tip of button!"; tipInfo.Caption = "GcBalloonTip Samples"; tipInfo.AutoShow = true; tipInfo.AutoSize = false; tipInfo.Size=new Size(100,100); gcBalloonTip1.SetBalloonTipInformation(button7, tipInfo); } else { gcBalloonTip1.SetBalloonTipInformation(button7, (BalloonTipInformation)null); } }
Private Sub button7_Click(sender As Object, e As EventArgs) If gcBalloonTip1.GetBalloonTipInformation(button7) Is Nothing Then Dim tipInfo As New BalloonTipInformation() tipInfo.Text = "Show the tip of button!" tipInfo.Caption = "GcBalloonTip Samples" tipInfo.AutoShow = True tipInfo.AutoSize = False tipInfo.Size = New Size(100, 100) gcBalloonTip1.SetBalloonTipInformation(button7, tipInfo) Else gcBalloonTip1.SetBalloonTipInformation(button7, DirectCast(Nothing, BalloonTipInformation)) End If End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2