Control.Refresh Control.Refresh Control.Refresh Control.Refresh Method

定義

強制控制項使其工作區失效,並且立即重繪其本身和任何子控制項。Forces the control to invalidate its client area and immediately redraw itself and any child controls.

public:
 virtual void Refresh();
public virtual void Refresh ();
abstract member Refresh : unit -> unit
override this.Refresh : unit -> unit
Public Overridable Sub Refresh ()

給繼承者的注意事項

當覆寫Refresh()衍生類別時,請務必呼叫基底類別的Refresh()方法,讓控制項及其子控制項失效並重新繪製。When overriding Refresh() in a derived class, be sure to call the base class's Refresh() method so the control and its child controls are invalidated and redrawn.

適用於

另請參閱