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

明色部分の色を取得または設定します。
構文
Public Property LightColor As Color
public Color LightColor {get; set;}

プロパティ値

明色部分の色を表すSystem.Drawing.Color値。既定値はSystem.Drawing.SystemColors.ControlLightです。
使用例
次のサンプルコードは、CellThreeDBorderを設定する方法を示します。このサンプルコードは、Borderに示されている詳細なコード例の一部を抜粋したものです。
void setThreeDBorderToCell_Click(object sender, EventArgs e)
{
    Template template1 = gcMultiRow1.Template;

    Row row = template1.Row;

    ThreeDBorder threeDBorder1 = new ThreeDBorder();
    threeDBorder1.DarkColor = Color.Gray;
    threeDBorder1.DarkDarkColor = Color.DarkGray;
    threeDBorder1.LightColor = Color.White;
    threeDBorder1.LightLightColor = Color.LightGray;

    threeDBorder1.ThreeDEffect = ThreeDEffect.Sunken;

    row.Cells[0].Style.Border = threeDBorder1;

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

    Dim row As Row = template1.Row

    Dim threeDBorder1 As New ThreeDBorder()
    threeDBorder1.DarkColor = Color.Gray
    threeDBorder1.DarkDarkColor = Color.DarkGray
    threeDBorder1.LightColor = Color.White
    threeDBorder1.LightLightColor = Color.LightGray

    threeDBorder1.ThreeDEffect = ThreeDEffect.Sunken
    row.Cells(0).Style.Border = threeDBorder1

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

ThreeDBorder クラス
ThreeDBorder メンバ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.