DataGridViewAdvancedBorderStyle 建構函式

定義

初始化 DataGridViewAdvancedBorderStyle 類別的新執行個體。Initializes a new instance of the DataGridViewAdvancedBorderStyle class.

public:
 DataGridViewAdvancedBorderStyle();
public DataGridViewAdvancedBorderStyle ();
Public Sub New ()

範例

下列程式碼範例說明如何使用此函式。The following code example illustrates the use of this constructor. 這個範例是DataGridViewAdvancedBorderStyle類別總覽中提供之較大範例的一部分。This example is part of a larger example available in the DataGridViewAdvancedBorderStyle class overview.

public override DataGridViewAdvancedBorderStyle AdjustedTopLeftHeaderBorderStyle
{
    get
    {
        DataGridViewAdvancedBorderStyle newStyle =
            new DataGridViewAdvancedBorderStyle();
        newStyle.Top = DataGridViewAdvancedCellBorderStyle.None;
        newStyle.Left = DataGridViewAdvancedCellBorderStyle.None;
        newStyle.Bottom = DataGridViewAdvancedCellBorderStyle.Outset;
        newStyle.Right = DataGridViewAdvancedCellBorderStyle.OutsetDouble;
        return newStyle;
    }
}
Public Overrides ReadOnly Property AdjustedTopLeftHeaderBorderStyle() _
    As DataGridViewAdvancedBorderStyle
    Get
        Dim newStyle As New DataGridViewAdvancedBorderStyle()
        With newStyle
            .Top = DataGridViewAdvancedCellBorderStyle.None
            .Left = DataGridViewAdvancedCellBorderStyle.None
            .Bottom = DataGridViewAdvancedCellBorderStyle.Outset
            .Right = DataGridViewAdvancedCellBorderStyle.OutsetDouble
        End With
        Return newStyle
    End Get
End Property

適用於

另請參閱