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

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

DataGridTableStyle.SelectionForeColor プロパティ

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

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

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

value = instance.SelectionForeColor

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

/** @property */
public void set_SelectionForeColor (Color value)
public function get SelectionForeColor
 () : Color

public function set SelectionForeColor
 (value : Color)

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

使用例使用例
' Creates a common color dialog box.
Dim myColorDialog As New
 ColorDialog()
myColorDialog.AllowFullOpen = False
' Allow the user to get help. 
myColorDialog.ShowHelp = True
' Set the initial color select to the current color.
myColorDialog.Color = customersStyle.SelectionForeColor
' Show color dialog box.
myColorDialog.ShowDialog()
' Set selection fore color to selected color.
customersStyle.SelectionForeColor = myColorDialog.Color
// Creates a common color dialog box.
ColorDialog myColorDialog = new ColorDialog();
myColorDialog.AllowFullOpen = false ;
// Allow the user to get help. 
myColorDialog.ShowHelp = true ;
// Set the initial color select to the current color.
myColorDialog.Color = customersStyle.SelectionForeColor; 
// Show color dialog box.
myColorDialog.ShowDialog();
// Set selection fore color to selected color.
customersStyle.SelectionForeColor = myColorDialog.Color;
// Creates a common color dialog box.
ColorDialog^ myColorDialog = gcnew ColorDialog;
myColorDialog->AllowFullOpen = false;

// Allow the user to get help.
myColorDialog->ShowHelp = true;

// Set the initial color select to the current color.
myColorDialog->Color = customersStyle->SelectionForeColor;

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

// Set selection fore color to selected color.
customersStyle->SelectionForeColor = myColorDialog->Color;
// Creates a common color dialog box.
ColorDialog myColorDialog = new ColorDialog();

myColorDialog.set_AllowFullOpen(false);

// Allow the user to get help. 
myColorDialog.set_ShowHelp(true);

// Set the initial color select to the current color.
myColorDialog.set_Color(customersStyle.get_SelectionForeColor());

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

// Set selection fore color to selected color.
customersStyle.set_SelectionForeColor(myColorDialog.get_Color());
// Creates a common color dialog box.
ColorDialog myColorDialog = new ColorDialog();

myColorDialog.set_AllowFullOpen(false);

// Allow the user to get help. 
myColorDialog.set_ShowHelp(true);

// Set the initial color select to the current color.
myColorDialog.set_Color(customersStyle.get_SelectionForeColor());

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

// Set selection fore color to selected color.
customersStyle.set_SelectionForeColor(myColorDialog.get_Color());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTableStyle クラス
DataGridTableStyle メンバ
System.Windows.Forms 名前空間
ResetSelectionForeColor
DataGridTableStyle.SelectionBackColor プロパティ
SelectionForeColorChanged
ShouldSerializeSelectionForeColor



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

辞書ショートカット

すべての辞書の索引

「DataGridTableStyle.SelectionForeColor プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS