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

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

DataGridTableStyle.SelectionBackColor プロパティ

選択されているセル背景色取得または設定します

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

Public Property SelectionBackColor As
 Color
Dim instance As DataGridTableStyle
Dim value As Color

value = instance.SelectionBackColor

instance.SelectionBackColor = value
public Color SelectionBackColor { get; set;
 }
public:
property Color SelectionBackColor {
    Color get ();
    void set (Color value);
}
/** @property */
public Color get_SelectionBackColor ()

/** @property */
public void set_SelectionBackColor (Color value)
public function get SelectionBackColor
 () : Color

public function set SelectionBackColor
 (value : Color)

プロパティ
選択されているセル背景色を表す Color

使用例使用例
' Allow the user to select a Color.
Dim myColorDialog As New
 ColorDialog()
myColorDialog.AllowFullOpen = False
myColorDialog.ShowHelp = True
' Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor
' Show color dialog box.
myColorDialog.ShowDialog()
' Set the backcolor for the selected cells. 
myGridTableStyle.SelectionBackColor = myColorDialog.Color
// Allow the user to select a Color.
ColorDialog myColorDialog = new ColorDialog();      
myColorDialog.AllowFullOpen = false ;      
myColorDialog.ShowHelp = true ;
// Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor;
// Show color dialog box.
myColorDialog.ShowDialog();
// Set the backcolor for the selected cells. 
myGridTableStyle.SelectionBackColor = myColorDialog.Color;    
// Allow the user to select a Color.
ColorDialog^ myColorDialog = gcnew ColorDialog;
myColorDialog->AllowFullOpen = false;
myColorDialog->ShowHelp = true;

// Set the initial color select to the current color.
myColorDialog->Color = myGridTableStyle->SelectionBackColor;

// Show color dialog box.
myColorDialog->ShowDialog();

// Set the backcolor for the selected cells.
myGridTableStyle->SelectionBackColor = myColorDialog->Color;
// Allow the user to select a Color.
ColorDialog myColorDialog = new ColorDialog();

myColorDialog.set_AllowFullOpen(false);
myColorDialog.set_ShowHelp(true);

// Set the initial color select to the current color.
myColorDialog.set_Color(myGridTableStyle.get_SelectionBackColor());

// Show color dialog box.
myColorDialog.ShowDialog();

// Set the backcolor for the selected cells. 
myGridTableStyle.set_SelectionBackColor(myColorDialog.get_Color());
// Allow the user to select a Color.
ColorDialog myColorDialog = new ColorDialog();

myColorDialog.set_AllowFullOpen(false);
myColorDialog.set_ShowHelp(true);

// Set the initial color select to the current color.
myColorDialog.set_Color(myGridTableStyle.get_SelectionBackColor());

// Show color dialog box.
myColorDialog.ShowDialog();

// Set the backcolor for the selected cells. 
myGridTableStyle.set_SelectionBackColor(myColorDialog.get_Color());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTableStyle クラス
DataGridTableStyle メンバ
System.Windows.Forms 名前空間
ResetSelectionBackColor
SelectionBackColorChanged
ShouldSerializeSelectionBackColor
SelectionForeColor



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS