DataGridViewAdvancedCellBorderStyle DataGridViewAdvancedCellBorderStyle DataGridViewAdvancedCellBorderStyle DataGridViewAdvancedCellBorderStyle Enum

定義

DataGridView コントロールのセルに適用できる境界線スタイルを指定します。Specifies the border styles that can be applied to the cells of a DataGridView control.

public enum class DataGridViewAdvancedCellBorderStyle
public enum DataGridViewAdvancedCellBorderStyle
type DataGridViewAdvancedCellBorderStyle = 
Public Enum DataGridViewAdvancedCellBorderStyle
継承
DataGridViewAdvancedCellBorderStyleDataGridViewAdvancedCellBorderStyleDataGridViewAdvancedCellBorderStyleDataGridViewAdvancedCellBorderStyle

フィールド

Inset Inset Inset Inset 3

一重線のくぼんだ境界線。A single-line sunken border.

InsetDouble InsetDouble InsetDouble InsetDouble 4

二重線のくぼんだ境界線。A double-line sunken border.

None None None None 1

境界線なし。No borders.

NotSet NotSet NotSet NotSet 0

境界線が設定されていません。The border is not set.

Outset Outset Outset Outset 5

一重線の浮き出した境界線。A single-line raised border.

OutsetDouble OutsetDouble OutsetDouble OutsetDouble 6

二重線の浮き出した境界線。A double-line raised border.

OutsetPartial OutsetPartial OutsetPartial OutsetPartial 7

浮き出した部分を含む一重線の境界線。A single-line border containing a raised portion.

Single Single Single Single 2

一重線の境界線。A single-line border.

次のコード例は、オーバーライドする方法を示します、DataGridView.AdjustedTopLeftHeaderBorderStyle左上隅のセルの境界線をカスタマイズするプロパティ。The following code example demonstrates how to override the DataGridView.AdjustedTopLeftHeaderBorderStyle property to customize the borders of the upper-left cell. このコード例が示されている例の一部、DataGridViewAdvancedBorderStyleクラス。This code example is part of a larger example provided for the DataGridViewAdvancedBorderStyle class.

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

注釈

AdvancedCellBorderStyleのプロパティ、DataGridViewコントロール型のオブジェクトを返しますDataGridViewAdvancedBorderStyle、型のプロパティを持つDataGridViewAdvancedCellBorderStyleします。The AdvancedCellBorderStyle property of the DataGridView control returns an object of type DataGridViewAdvancedBorderStyle, which has properties of type DataGridViewAdvancedCellBorderStyle.

適用対象

こちらもご覧ください