DataGridViewCheckBoxCell.FlatStyle プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewCheckBoxCell.FlatStyle プロパティの意味・解説 

DataGridViewCheckBoxCell.FlatStyle プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

チェック ボックス ユーザー インターフェイス (UI) のフラット スタイル外観取得または設定します

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

Public Property FlatStyle As
 FlatStyle
Dim instance As DataGridViewCheckBoxCell
Dim value As FlatStyle

value = instance.FlatStyle

instance.FlatStyle = value
public FlatStyle FlatStyle { get; set;
 }
public:
property FlatStyle FlatStyle {
    FlatStyle get ();
    void set (FlatStyle value);
}
/** @property */
public FlatStyle get_FlatStyle ()

/** @property */
public void set_FlatStyle (FlatStyle value)
public function get FlatStyle
 () : FlatStyle

public function set FlatStyle
 (value : FlatStyle)

プロパティ
FlatStyle 値の 1 つ既定値Standard です。

例外例外
例外種類条件

InvalidEnumArgumentException

このプロパティ設定時に指定された値が、有効な FlatStyle 値ではありません。

解説解説
使用例使用例

このプロパティ類似している DataGridViewCheckBoxColumn.FlatStyle プロパティ使用方法次のコード例示します

Private Sub AddOutOfOfficeColumn()
    Dim column As New DataGridViewCheckBoxColumn()
    With column
        .HeaderText = ColumnName.OutOfOffice.ToString()
        .Name = ColumnName.OutOfOffice.ToString()
        .AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells
        .FlatStyle = FlatStyle.Standard
        .CellTemplate = New DataGridViewCheckBoxCell()
        .CellTemplate.Style.BackColor = Color.Beige
    End With

    DataGridView1.Columns.Insert(0, column)
End Sub
private void AddOutOfOfficeColumn()
{
    DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn();
    {
        column.HeaderText = ColumnName.OutOfOffice.ToString();
        column.Name = ColumnName.OutOfOffice.ToString();
        column.AutoSizeMode = 
            DataGridViewAutoSizeColumnMode.DisplayedCells;
        column.FlatStyle = FlatStyle.Standard;
        column.ThreeState = true;
        column.CellTemplate = new DataGridViewCheckBoxCell();
        column.CellTemplate.Style.BackColor = Color.Beige;
    }

    DataGridView1.Columns.Insert(0, column);
}
private:
    void AddOutOfOfficeColumn()
    {
        DataGridViewCheckBoxColumn^ column = gcnew DataGridViewCheckBoxColumn();
        {
            column->HeaderText = ColumnName::OutOfOffice.ToString();
            column->Name = ColumnName::OutOfOffice.ToString();
            column->AutoSizeMode = 
                DataGridViewAutoSizeColumnMode::DisplayedCells;
            column->FlatStyle = FlatStyle::Standard;
            column->ThreeState = true;
            column->CellTemplate = gcnew DataGridViewCheckBoxCell();
            column->CellTemplate->Style->BackColor = Color::Beige;
        }

        DataGridView1->Columns->Insert(0, column);
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCheckBoxCell クラス
DataGridViewCheckBoxCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
FlatStyle
DataGridViewCheckBoxColumn.FlatStyle



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

辞書ショートカット

すべての辞書の索引

「DataGridViewCheckBoxCell.FlatStyle プロパティ」の関連用語

DataGridViewCheckBoxCell.FlatStyle プロパティのお隣キーワード
検索ランキング

   

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



DataGridViewCheckBoxCell.FlatStyle プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS