View.Invalidate View.Invalidate Method

Definition

Overloads

Invalidate(Int32, Int32, Int32, Int32) Invalidate(Int32, Int32, Int32, Int32)

Mark the area defined by the rect (l,t,r,b) as needing to be drawn.

Invalidate() Invalidate()

Invalidate the whole view.

Invalidate(Rect) Invalidate(Rect)

Mark the area defined by dirty as needing to be drawn.

Invalidate(Int32, Int32, Int32, Int32) Invalidate(Int32, Int32, Int32, Int32)

Mark the area defined by the rect (l,t,r,b) as needing to be drawn.

[Android.Runtime.Register("invalidate", "(IIII)V", "GetInvalidate_IIIIHandler")]
public virtual void Invalidate (int l, int t, int r, int b);
abstract member Invalidate : int * int * int * int -> unit
override this.Invalidate : int * int * int * int -> unit

Parameters

l
Int32 Int32

the left position of the dirty region

t
Int32 Int32

the top position of the dirty region

r
Int32 Int32

the right position of the dirty region

b
Int32 Int32

the bottom position of the dirty region

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Invalidate() Invalidate()

Invalidate the whole view.

[Android.Runtime.Register("invalidate", "()V", "GetInvalidateHandler")]
public virtual void Invalidate ();
abstract member Invalidate : unit -> unit
override this.Invalidate : unit -> unit

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Invalidate(Rect) Invalidate(Rect)

Mark the area defined by dirty as needing to be drawn.

[Android.Runtime.Register("invalidate", "(Landroid/graphics/Rect;)V", "GetInvalidate_Landroid_graphics_Rect_Handler")]
public virtual void Invalidate (Android.Graphics.Rect dirty);
abstract member Invalidate : Android.Graphics.Rect -> unit
override this.Invalidate : Android.Graphics.Rect -> unit

Parameters

dirty
Rect Rect

the rectangle representing the bounds of the dirty region

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to