PowerTools MultiRow for Windows Forms 8.0J
ThreeDBorder コンストラクタ(ThreeDEffect)
使用例 

3D効果。
指定した3D効果を使用して、ThreeDBorderクラスの新しいインスタンスを初期化します。
構文
Public Function New( _
   ByVal effect As ThreeDEffect _
)
public ThreeDBorder( 
   ThreeDEffect effect
)

パラメータ

effect
3D効果。
例外
例外解説
System.ComponentModel.InvalidEnumArgumentException指定された値が有効なThreeDEffect値ではありません。
使用例
次のサンプルコードは、SectionThreeDBorderを設定する方法を示します。このサンプルコードは、Borderに示されている詳細なコード例の一部を抜粋したものです。
void setThreeDBorderToRow_Click(object sender, EventArgs e)
{
    Template template1 = gcMultiRow1.Template;
    Row row = template1.Row;

    if (row.Border is ThreeDBorder)
    {
        row.Border = Border.Empty;
    }
    else
    {
        //Using this constructor can set the outline ThreeDBorder
        ThreeDBorder threeDBorder1 = new ThreeDBorder(Color.Gray, Color.DarkGray, Color.White, Color.LightGray);
        threeDBorder1.ThreeDEffect = ThreeDEffect.Raised;
        //Set ThreeDBorder to Row.
        row.Border = threeDBorder1;
    }

    // Reload template1.
    this.gcMultiRow1.Template = template1;
}
Private Sub setThreeDBorderToRow_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setThreeDBorderToRow.Click
    Dim template1 As Template = gcMultiRow1.Template
    Dim row As Row = template1.Row

    If TypeOf row.Border Is ThreeDBorder Then
        row.Border = Border.Empty
    Else
        'Using this constructor can set the outline ThreeDBorder
        Dim threeDBorder1 As New ThreeDBorder(Color.Gray, Color.DarkGray, Color.White, Color.LightGray)
        threeDBorder1.ThreeDEffect = ThreeDEffect.Raised
        'Set ThreeDBorder to Row.
        row.Border = threeDBorder1
    End If

    ' Reload template1.
    Me.gcMultiRow1.Template = template1
End Sub
参照

ThreeDBorder クラス
ThreeDBorder メンバ
オーバーロード一覧

 

 


© 2008-2015 GrapeCity inc. All rights reserved.