Method RemoveOverlay
RemoveOverlay(ObjectUniqueId?, bool)
Removes an overlay with the specified unique identifier from the overlays collection.
public virtual bool RemoveOverlay(ObjectUniqueId? overlayId, bool invalidate = true)
Parameters
overlayIdObjectUniqueId?The unique identifier of the overlay to remove.
invalidateboolA value indicating whether to invalidate the control after removing the overlay. If true, the control is invalidated; otherwise, it is not.
Returns
RemoveOverlay(IControlOverlay, bool)
Removes the specified overlay from the control.
public virtual bool RemoveOverlay(IControlOverlay overlay, bool invalidate = true)
Parameters
overlayIControlOverlayThe overlay to remove.
invalidateboolThe bool indicating whether to invalidate the control.