DataGridViewCellBorderStyle 列挙体とは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewCellBorderStyle 列挙体の意味・解説 

DataGridViewCellBorderStyle 列挙体

メモ : この列挙体は、.NET Framework version 2.0新しく追加されたものです。

DataGridView コントロールセル適用できる境界線スタイル指定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Enumeration DataGridViewCellBorderStyle
Dim instance As DataGridViewCellBorderStyle
public enum DataGridViewCellBorderStyle
public enum class DataGridViewCellBorderStyle
public enum DataGridViewCellBorderStyle
public enum DataGridViewCellBorderStyle
メンバメンバ
 メンバ説明
Customカスタマイズされた境界線。 
None境界線なし。 
Raised3D浮き出し境界線。 
RaisedHorizontal3D浮き出し平方向の境界線。 
RaisedVertical3D浮き出した垂直方向の境界線。 
Single一重線の境界線。  
SingleHorizontal平方向の一重線の境界線。 
SingleVertical直方向の一重線の境界線。 
Sunken3Dくぼんだ境界線。 
SunkenHorizontal3Dくぼんだ平方向の境界線。 
SunkenVertical3Dくぼんだ直方向の境界線。 
解説解説

DataGridView コントロールの CellBorderStyle プロパティは、DataGridViewCellBorderStyle 列挙体を使用します。行の間にのみ境界線描画するには、SingleHorizontal、SunkenHorizontal、または RaisedHorizontal を指定します。列の間にのみ境界線描画するには、SingleVertical、SunkenVertical、または RaisedVertical を指定します。行の間と列の間に境界線描画するには、SingleSunken、または Raised指定します

使用例使用例

この型の使用方法次のコード例示します

Private Sub SetBorderAndGridlineStyles()

    With Me.dataGridView1
        .GridColor = Color.BlueViolet
        .BorderStyle = BorderStyle.Fixed3D
        .CellBorderStyle = DataGridViewCellBorderStyle.None
        .RowHeadersBorderStyle = _
            DataGridViewHeaderBorderStyle.Single
        .ColumnHeadersBorderStyle = _
            DataGridViewHeaderBorderStyle.Single
    End With

End Sub
private void SetBorderAndGridlineStyles()
{
    this.dataGridView1.GridColor = Color.BlueViolet;
    this.dataGridView1.BorderStyle = BorderStyle.Fixed3D;
    this.dataGridView1.CellBorderStyle =
        DataGridViewCellBorderStyle.None;
    this.dataGridView1.RowHeadersBorderStyle =
        DataGridViewHeaderBorderStyle.Single;
    this.dataGridView1.ColumnHeadersBorderStyle =
        DataGridViewHeaderBorderStyle.Single;
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGridViewCellBorderStyle 列挙体を検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGridViewCellBorderStyle 列挙体を検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGridViewCellBorderStyle 列挙体 を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DataGridViewCellBorderStyle 列挙体」の関連用語

DataGridViewCellBorderStyle 列挙体のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewCellBorderStyle 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS