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

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

DataGridTableStyle.ResetLinkColor メソッド

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

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

Public Sub ResetLinkColor
Dim instance As DataGridTableStyle

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

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

使用例使用例
' String variable used to show message.   
Dim myString As String =
 "Link color changed from: "
' Store current foreground color of selected cells.
Dim myCurrentColor As Color = myDataGridTableStyle.LinkColor
myString += myCurrentColor.ToString()
' Reset link color to default.
myDataGridTableStyle.ResetLinkColor()
myString += "  to "
myString += myDataGridTableStyle.LinkColor.ToString()
' Show information about changes in color setting.  
MessageBox.Show(myString, "Link line color information")
// String variable used to show message.   
string myString = "Link color changed from: ";
// Store current foreground color of selected cells.
Color myCurrentColor = myDataGridTableStyle.LinkColor;
myString += myCurrentColor.ToString();
// Reset link color to default.
myDataGridTableStyle.ResetLinkColor();
myString += "  to ";
myString += myDataGridTableStyle.LinkColor.ToString();
// Show information about changes in color setting.  
MessageBox.Show(myString, "Link line color information");
// String variable used to show message.
String^ myString = "Link color changed from: ";

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

// Reset link color to default.
myDataGridTableStyle->ResetLinkColor();
myString = String::Concat( myString, " to " );
myString = String::Concat( myString, myDataGridTableStyle->LinkColor );

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

// Store current foreground color of selected cells.
Color myCurrentColor = myDataGridTableStyle.get_LinkColor();

myString += myCurrentColor.ToString();

// Reset link color to default.
myDataGridTableStyle.ResetLinkColor();
myString += "  to ";
myString += myDataGridTableStyle.get_LinkColor().ToString();

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



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS