PowerTools PlusPak for Windows Forms 8.0J
AutoSize プロパティ (BalloonTipInformation)
使用例 

バルーンチップのサイズを自動的に決定するかどうかを示す値を取得または設定します。
構文
Public Property AutoSize As Boolean
public bool AutoSize {get; set;}

プロパティ値

バルーンチップのサイズを自動的に決定するかどうかを示す bool 値。
使用例

次のサンプルコードは、このプロパティの使用方法を示します。

このサンプルコードは、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

参照

BalloonTipInformation クラス
BalloonTipInformation メンバ

Send Feedback