PowerTools InputMan for Windows Forms 8.0J
StatusBar プロパティ (GcListBox)
使用例 

ステータスバーの設定を取得します。
構文
Public ReadOnly Property StatusBar As StatusBar
public StatusBar StatusBar {get;}

プロパティ値

ステータスバーの設定を表すStatusBarオブジェクト。
解説
このプロパティは、StatusBar.Text プロパティとStatusBar.Visible プロパティを決定します。
使用例
ステータスバー、オーバーフローチップ、そしてツールチップを設定した GcListBox コントロールを作成するコード例を次に示します。この例では他に DescriptionFormatDescriptionSubItemIndex、 StatusBar、 ShowOverflowTip、そして ShowItemTip プロパティを使用しています。
//  Please use the following namespace
//  using System.Windows.Forms;
//  using GrapeCity.Win.Editors;

public void SetStatusBarAndTipSettings()
{
    // Creates the GcListBox control.
    GcListBox gcListBox1 = new GcListBox();
    
    // Sets the string format of the StatusBar.Text.
    gcListBox1.DescriptionFormat = "[0] + [1]";

    // Sets the DescriptionSubItemIndex for displaying the value of the subitem as statusbar's text.
    gcListBox1.DescriptionSubItemIndex = 1;

    // Shows the statusbar.
    gcListBox1.StatusBar.Visible = true;
    // Shows the OverflowTip on each sub item.
    gcListBox1.ShowOverflowTip = true;
    // Shows ToolTip for each item when mouse move to it.
    gcListBox1.ShowItemTip = true;
}
'  Please use the following namespace
'  Imports System.Windows.Forms;
'  Imports GrapeCity.Win.Editors;

Public Sub SetStatusBarAndTipSettings()
    ' Creates the GcListBox control.
    Dim gcListBox1 As New GcListBox()

    ' Sets the string format of the StatusBar.Text.
    gcListBox1.DescriptionFormat = "[0] + [1]"

    ' Sets the DescriptionSubItemIndex for displaying the value of the subitem as statusbar's text.
    gcListBox1.DescriptionSubItemIndex = 1

    ' Shows the statusbar.
    gcListBox1.StatusBar.Visible = True
    ' Shows the OverflowTip on each sub item.
    gcListBox1.ShowOverflowTip = True
    ' Shows ToolTip for each item when mouse move to it.
    gcListBox1.ShowItemTip = True
End Sub
参照

GcListBox クラス
GcListBox メンバ
DescriptionFormat プロパティ
DescriptionSubItemIndex プロパティ

 

 


© 2004-2015 GrapeCity inc. All rights reserved.