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

ピッカーコントロールの一重境界線の色を取得または設定します。
構文
Public Property SingleBorderColor As Color
public Color SingleBorderColor {get; set;}

プロパティ値

ピッカーコントロールの一重境界線の色を表すSystem.Drawing.Color。デフォルトはSystem.Drawing.SystemColors.WindowFrameです。
例外
例外解説
System.ArgumentException 指定された色のアルファ値が255ではありません。
解説
SingleBorderColorの設定は、BorderStyleSystem.Windows.Forms.BorderStyle.FixedSingleで、FlatStyleの値がFlatStyleEx.StandardFlatStyleEx.SystemFlatStyleEx.FlatFlatStyleEx.Popupのいずれかである場合にのみ適用されます。SingleBorderColorでは、透明な色はサポートされていません。
使用例
次のサンプルコードは、GrapeCity.Win.Containers.GcComboFrameコントロールでのこのプロパティの使用方法を示します。この例では、BorderStyleSystem.Windows.Forms.BorderStyle.FixedSingleに設定し、SingleBorderColorColor.Blackに設定しています。このサンプルコードは、GrapeCity.Win.Containers.GcComboFrameクラスの概要に示されている詳細なコード例の一部を抜粋したものです。
private void InitializeComboFrameDropDowSettings()
{
    // Sets the AutoDropDown to true to open the gcComboFrame1's drop-down window automatically
    // after the control gets focus.
    this.gcComboFrame1.DropDownSettings.AutoDropDown = true;

    // Set drop-down windows's size .
    this.gcComboFrame1.DropDownSettings.Size = new Size(this.gcComboFrame1.Width, 100);

    // Set AllowResize to true to enable user UI resizes the drop-down window by sizing grip.
    this.gcComboFrame1.DropDownSettings.AllowResize = true;

    // Opens the drop-down window from the below-right of gcComboFrame1.
    this.gcComboFrame1.DropDownSettings.DropDownDirection = DropDownDirection.BelowRight;

    // Set the opening and closing animation for the drop-down window.
    this.gcComboFrame1.DropDownSettings.OpeningAnimation = DropDownAnimation.Fade;
    this.gcComboFrame1.DropDownSettings.ClosingAnimation = DropDownAnimation.Fade;

    // Hide the separator between the content of the drop-down window and the resizing grip.
    this.gcComboFrame1.DropDownSettings.ShowSeparator = false;

    // Sets the BorderStyle of the drop-down window.
    this.gcComboFrame1.DropDownSettings.BorderStyle = BorderStyle.FixedSingle;

    // Sets the color of the border of drop-down window.
    this.gcComboFrame1.DropDownSettings.SingleBorderColor = Color.Black;

    // Enables the shadow effect of the drop-down window.
    this.gcComboFrame1.DropDownSettings.ShowShadow = true;
}
Private Sub InitializeComboFrameDropDowSettings()
    ' Sets the AutoDropDown to true to open the gcComboFrame1's drop-down window automatically
    ' after the control gets focus.
    Me.gcComboFrame1.DropDownSettings.AutoDropDown = True

    ' Set drop-down windows's size .
    Me.gcComboFrame1.DropDownSettings.Size = New Size(Me.gcComboFrame1.Width, 100)

    ' Set AllowResize to true to enable user UI resizes the drop-down window by sizing grip.
    Me.gcComboFrame1.DropDownSettings.AllowResize = True

    ' Opens the drop-down window from the below-right of gcComboFrame1.
    Me.gcComboFrame1.DropDownSettings.DropDownDirection = DropDownDirection.BelowRight

    ' Set the opening and closing animation for the drop-down window.
    Me.gcComboFrame1.DropDownSettings.OpeningAnimation = DropDownAnimation.Fade
    Me.gcComboFrame1.DropDownSettings.ClosingAnimation = DropDownAnimation.Fade

    ' Hide the separator between the content of the drop-down window and the resizing grip.
    Me.gcComboFrame1.DropDownSettings.ShowSeparator = False

    ' Sets the BorderStyle of the drop-down window.
    Me.gcComboFrame1.DropDownSettings.BorderStyle = BorderStyle.FixedSingle

    ' Sets the color of the border of drop-down window.
    Me.gcComboFrame1.DropDownSettings.SingleBorderColor = Color.Black

    ' Enables the shadow effect of the drop-down window.
    Me.gcComboFrame1.DropDownSettings.ShowShadow = True
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

参照

PlusPakPickerBase クラス
PlusPakPickerBase メンバ

Send Feedback