Control.Refresh 方法

定義

強制控制項使其工作區失效,並且立即重繪其本身和任何子控制項。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.

適用於

另請參閱