Table of Contents

Method RemoveOverlays

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

RemoveOverlays(ControlOverlayFlags, bool)

Removes overlays from the control that match the specified flags.

public virtual bool RemoveOverlays(ControlOverlayFlags flags, bool invalidate = true)

Parameters

flags ControlOverlayFlags

The flags that determine which overlays to remove.

invalidate bool

A value indicating whether the control should be invalidated after removing the overlays. The default is true.

Returns

bool

true if any overlays were removed; otherwise, false.

Remarks

This method iterates through the collection of overlays and removes those that match the specified flags. If invalidate is true, the control is invalidated to reflect the changes.