PowerTools MultiRow for Windows Forms 8.0J
ButtonForeColor プロパティ (PopupCell)
使用例 

ポップアップボタンの前景色を取得または設定します。
構文
Public Property ButtonForeColor As Color
public Color ButtonForeColor {get; set;}

プロパティ値

ポップアップボタンの前景色を表すSystem.Drawing.Color値。既定値はSystem.Drawing.SystemColors.ControlTextです。
使用例
次のサンプルコードは、ポップアップ型セルの動作または外観をカスタマイズする方法を示します。このサンプルコードは、PopupCellクラスに示されている詳細なコード例の一部を抜粋したものです。
PopupCell CreateCustomButtonAppearancePopupCell()
{
    PopupCell popupCell1 = new PopupCell();

    popupCell1.ButtonForeColor = Color.Red;
    popupCell1.ButtonBackColor = Color.Yellow;
    popupCell1.ButtonFlatStyle = FlatStyle.Flat;
    popupCell1.ButtonFlatAppearance.MouseOverBackColor = Color.Orange;
    popupCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd;
    
    popupCell1.Size = new Size(130, 21);

    // Show Font dialog to edit font.
    popupCell1.Popup = new FontDialog();
    popupCell1.PopupValueMember = "Font";

    return popupCell1;
}
Private Function CreateCustomButtonAppearancePopupCell() As PopupCell
    Dim popupCell1 As New PopupCell()

    popupCell1.ButtonForeColor = Color.Red
    popupCell1.ButtonBackColor = Color.Yellow
    popupCell1.ButtonFlatStyle = FlatStyle.Flat
    popupCell1.ButtonFlatAppearance.MouseOverBackColor = Color.Orange
    popupCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd

    popupCell1.Size = New Size(130, 21)

    ' Show Font dialog to edit font.
    popupCell1.Popup = New FontDialog()
    popupCell1.PopupValueMember = "Font"

    Return popupCell1
End Function
参照

PopupCell クラス
PopupCell メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.