Control.UpdateStyles メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


このメソッドは、CreateParams メソッドを呼び出して、適用するスタイルを取得します。コントロールの CreateParams プロパティに割り当てられた CreateParams の Style プロパティおよび ExStyle プロパティに割り当てられたスタイルが、再適用されます。必要に応じて、スタイルの変更を反映するようにコントロールが再描画されます。

Form でダブル バッファリングを有効にし、スタイルを更新して変更内容を反映するコード例を次に示します。
Public Sub EnableDoubleBuffering() ' Set the value of the double-buffering style bits to true. Me.SetStyle(ControlStyles.DoubleBuffer _ Or ControlStyles.UserPaint _ Or ControlStyles.AllPaintingInWmPaint, _ True) Me.UpdateStyles() End Sub
public void EnableDoubleBuffering() { // Set the value of the double-buffering style bits to true. this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); this.UpdateStyles(); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からControl.UpdateStyles メソッドを検索する場合は、下記のリンクをクリックしてください。

- Control.UpdateStyles メソッドのページへのリンク