TableLayoutPanelCellBorderStyle 列挙型

定義

テーブル レイアウト コントロール内のセルの境界線スタイルを指定します。

public enum class TableLayoutPanelCellBorderStyle
public enum TableLayoutPanelCellBorderStyle
type TableLayoutPanelCellBorderStyle = 
Public Enum TableLayoutPanelCellBorderStyle
継承
TableLayoutPanelCellBorderStyle

フィールド

Inset 2

一重線のくぼんだ境界線。

InsetDouble 3

二重線のくぼんだ境界線。

None 0

境界線なし。

Outset 4

一重線の浮き出した境界線。

OutsetDouble 5

二重線の浮き出した境界線。

OutsetPartial 6

浮き出した部分を含む一重線の境界線。

Single 1

一重線の境界線。

次の例は、列挙型を使用 TableLayoutPanelCellBorderStyle してコントロールの CellBorderStyle 設定を行う方法を TableLayoutPanel 示しています。 このコード例は、コントロールに提供されるより大きな例の TableLayoutPanel 一部です。

private void borderStyleOutsetRadioBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.TableLayoutPanel1.CellBorderStyle = 
        TableLayoutPanelCellBorderStyle.Outset;
}

private void borderStyleNoneRadioBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.TableLayoutPanel1.CellBorderStyle = 
        TableLayoutPanelCellBorderStyle.None;
}

private void borderStyleInsetRadioBtn_CheckedChanged(
    System.Object sender, 
    System.EventArgs e)
{
    this.TableLayoutPanel1.CellBorderStyle = 
        TableLayoutPanelCellBorderStyle.Inset;
}
Private Sub borderStyleOutsetRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleOutsetRadioBtn.CheckedChanged

    Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Outset

End Sub

Private Sub borderStyleNoneRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleNoneRadioBtn.CheckedChanged

    Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.None

End Sub

Private Sub borderStyleInsetRadioBtn_CheckedChanged( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles borderStyleInsetRadioBtn.CheckedChanged

    Me.TableLayoutPanel1.CellBorderStyle = TableLayoutPanelCellBorderStyle.Inset

End Sub

注釈

列挙体は TableLayoutPanelCellBorderStyle 、セル内のさまざまな罫線スタイル オプションを TableLayoutPanel表します。 各スタイルのセル罫線の幅は、クラスによって TableLayoutPanel 決まります。 境界線のスペースは、コントロールDisplayRectangleからTableLayoutPanel取得されます。

適用対象

こちらもご覧ください