DataGridTableStyle.ResetSelectionForeColor メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridTableStyle.ResetSelectionForeColor メソッドの意味・解説 

DataGridTableStyle.ResetSelectionForeColor メソッド

SelectionForeColor プロパティ既定値リセットします。

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

Public Sub ResetSelectionForeColor
Dim instance As DataGridTableStyle

instance.ResetSelectionForeColor
public void ResetSelectionForeColor ()
public:
void ResetSelectionForeColor ()
public void ResetSelectionForeColor ()
public function ResetSelectionForeColor ()
解説解説

通常、DataGridTableStyle のデザイナ作成する場合、または DataGridTableStyle組み込まれている独自のコントロール作成する場合に、このメソッド使用します。ShouldSerializeSelectionForeColor メソッド使用してプロパティの値が既定値から変更されたかどうかを判断します

使用例使用例
' String variable used to show message.   
Dim myString As String =
 "Fore color changed from: "
' Store current foreground color of selected cells.
Dim myCurrentColor As Color = customersStyle.SelectionForeColor
myString += myCurrentColor.ToString()
' Reset selection fore color to default.
customersStyle.ResetSelectionForeColor()
myString += "  to "
myString += customersStyle.SelectionForeColor.ToString()
' Show information about changes in color setting.  
MessageBox.Show(myString, "Selection fore color information")
// String variable used to show message.   
string myString = "Fore color changed from: ";
// Store current foreground color of selected cells.
Color myCurrentColor = customersStyle.SelectionForeColor;
myString += myCurrentColor.ToString();
// Reset selection fore color to default.
customersStyle.ResetSelectionForeColor();
myString += "  to ";
myString += customersStyle.SelectionForeColor.ToString();
// Show information about changes in color setting.  
MessageBox.Show(myString, "Selection fore color information");
// String variable used to show message.
String^ myString = "Fore color changed from: ";

// Store current foreground color of selected cells.
Color myCurrentColor = customersStyle->SelectionForeColor;
myString = String::Concat( myString, myCurrentColor );

// Reset selection fore color to default.
customersStyle->ResetSelectionForeColor();
myString = String::Concat( myString, "  to " );
myString = String::Concat( myString, customersStyle->SelectionForeColor );

// Show information about changes in color setting.
MessageBox::Show( myString, "Selection fore color information" );
// String variable used to show message.   
String myString = "Fore color changed from: ";

// Store current foreground color of selected cells.
Color myCurrentColor = customersStyle.get_SelectionForeColor();

myString += myCurrentColor.ToString();

// Reset selection fore color to default.
customersStyle.ResetSelectionForeColor();
myString += "  to ";
myString += System.Convert.ToString(customersStyle.get_SelectionForeColor());

// Show information about changes in color setting.  
MessageBox.Show(myString, "Selection fore color information");
// String variable used to show message.   
String myString = "Fore color changed from: ";

// Store current foreground color of selected cells.
Color myCurrentColor = customersStyle.get_SelectionForeColor();

myString += myCurrentColor.ToString();

// Reset selection fore color to default.
customersStyle.ResetSelectionForeColor();
myString += "  to ";
myString += System.Convert.ToString(customersStyle.
    get_SelectionForeColor());

// Show information about changes in color setting.  
MessageBox.Show(myString, "Selection fore color information");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTableStyle クラス
DataGridTableStyle メンバ
System.Windows.Forms 名前空間
SelectionBackColor
SelectionForeColor
SelectionForeColorChanged
ShouldSerializeSelectionForeColor



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

辞書ショートカット

すべての辞書の索引

DataGridTableStyle.ResetSelectionForeColor メソッドのお隣キーワード
検索ランキング

   

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



DataGridTableStyle.ResetSelectionForeColor メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS