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

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

DataGridTableStyle.ResetHeaderFont メソッド

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

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

Public Sub ResetHeaderFont
Dim instance As DataGridTableStyle

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

通常、DataGridTableStyle のデザイナ作成する場合、または DataGridTableStyle組み込まれている独自のコントロール作成する場合に、このメソッド使用します

使用例使用例
Private Sub MySetButton_Click(ByVal
 sender As Object, ByVal
 e As EventArgs)
    ' Set the 'HeaderFont' property of DataGridTableStyle instance.
    myTableStyle.HeaderFont = New Font("Impact",
 10)
    ' Add the DataGridTableStyle instance to the GridTableStylesCollection.
 
    myDataGrid.TableStyles.Add(myTableStyle)
End Sub 'MySetButton_Click
   
Private Sub MyResetButton_Click(ByVal
 sender As Object, ByVal
 e As EventArgs)
    ' Reset the Header Font to its default value.
    myTableStyle.ResetHeaderFont()
End Sub 'MyResetButton_Click
private void MySetButton_Click(object sender,
 EventArgs e)
{
   // Set the 'HeaderFont' property of the DataGridTableStyle instance.
   myTableStyle.HeaderFont=new Font("Impact",10);
   // Add the DataGridTableStyle instance to the GridTableStylesCollection.
 
   myDataGrid.TableStyles.Add(myTableStyle);
}
private void MyResetButton_Click(object sender,
 EventArgs e)
{
   // Reset the Header Font to its default value.
   myTableStyle.ResetHeaderFont();
}
private:
   void MySetButton_Click( Object^ /*sender*/, EventArgs^ /*e*/
 )
   {
      // Set the 'HeaderFont' property of the DataGridTableStyle instance.
      myTableStyle->HeaderFont = gcnew System::Drawing::Font( "Impact",10
 );

      // Add the DataGridTableStyle instance to the GridTableStylesCollection.
      myDataGrid->TableStyles->Add( myTableStyle );
   }

   void MyResetButton_Click( Object^ /*sender*/, EventArgs^ /*e*/
 )
   {
      // Reset the Header Font to its default value.
      myTableStyle->ResetHeaderFont();
   }
protected void MySetButton_Click(Object sender,
 EventArgs e)
{
    // Set the 'HeaderFont' property of the DataGridTableStyle instance.
    myTableStyle.set_HeaderFont(new Font("Impact", 10));

    // Add the DataGridTableStyle instance to the GridTableStylesCollection.
 
    myDataGrid.get_TableStyles().Add(myTableStyle);
} //MySetButton_Click

protected void MyResetButton_Click(Object sender,
 EventArgs e)
{
    // Reset the Header Font to its default value.
    myTableStyle.ResetHeaderFont();
} //MyResetButton_Click
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridTableStyle クラス
DataGridTableStyle メンバ
System.Windows.Forms 名前空間
HeaderBackColor
HeaderForeColor
ColumnHeadersVisible
HeaderFont
HeaderFontChanged
DataGridColumnStyle.HeaderText プロパティ



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS