TableLayoutPanelCellBorderStyle TableLayoutPanelCellBorderStyle TableLayoutPanelCellBorderStyle TableLayoutPanelCellBorderStyle Enum

定義

テーブル レイアウト コントロール内のセルの境界線スタイルを指定します。Specifies the border style of a cell in a table layout control.

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

フィールド

Inset Inset Inset Inset 2

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

InsetDouble InsetDouble InsetDouble InsetDouble 3

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

None None None None 0

境界線なし。No borders.

Outset Outset Outset Outset 4

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

OutsetDouble OutsetDouble OutsetDouble OutsetDouble 5

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

OutsetPartial OutsetPartial OutsetPartial OutsetPartial 6

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

Single Single Single Single 1

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

次の例は、使用する方法を示します、TableLayoutPanelCellBorderStyle列挙型を設定する、CellBorderStyleTableLayoutPanelコントロール。The following example shows how to use the TableLayoutPanelCellBorderStyle enumeration to set the CellBorderStyle for a TableLayoutPanel control. このコード例が示されている例の一部、TableLayoutPanelコントロール。This code example is part of a larger example provided for the TableLayoutPanel control.

  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します。The TableLayoutPanelCellBorderStyle enumeration represents the different border style options for a cell in a TableLayoutPanel. 各スタイルのセルの境界線の幅が続く、TableLayoutPanelクラス。The width of the cell border for each style is determined by the TableLayoutPanel class. 境界線用の領域から取得されますが、TableLayoutPanelコントロールのDisplayRectangleします。The space for the border is taken from the TableLayoutPanel control's DisplayRectangle.

適用対象

こちらもご覧ください