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

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

DataGridTableStyle.ResetGridLineColor メソッド

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

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

Public Sub ResetGridLineColor
Dim instance As DataGridTableStyle

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

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

使用例使用例
Private Sub Button_Click(ByVal
 sender As Object, ByVal
 e As EventArgs) Handles myButton.Click
    ' Change the 'GridLineColor'.
    myDataTableStyle.GridLineColor = Color.Blue
End Sub 'Button_Click
   
Private Sub Button1_Click(ByVal
 sender As Object, ByVal
 e As EventArgs) Handles myButton1.Click
    ' Reset the 'GridLineColor' to its orginal color.
    myDataTableStyle.ResetGridLineColor()
End Sub 'Button1_Click
private void Button_Click(object sender, EventArgs
 e)
{
     // Change the 'GridLineColor'.
     myDataTableStyle.GridLineColor = Color.Blue;
}

private void Button1_Click(object sender, EventArgs
 e)
{
   // Reset the 'GridLineColor' to its orginal color.
    myDataTableStyle.ResetGridLineColor();
}
private:
   void Button_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      // Change the 'GridLineColor'.
      myDataTableStyle->GridLineColor = Color::Blue;
   }

   void Button1_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      // Reset the 'GridLineColor' to its orginal color.
      myDataTableStyle->ResetGridLineColor();
   }
protected void Button_Click(Object sender,
 EventArgs e)
{
    // Change the 'GridLineColor'.
    myDataTableStyle.set_GridLineColor(Color.get_Blue());
} //Button_Click

protected void Button1_Click(Object sender,
 EventArgs e)
{
    // Reset the 'GridLineColor' to its orginal color.
    myDataTableStyle.ResetGridLineColor();
} //Button1_Click
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS