Method RemoveOverlay
RemoveOverlay(ref ObjectUniqueId?, bool)
Removes the overlay with the specified identifier from the collection. After removal, sets the identifier to null.
public bool RemoveOverlay(ref ObjectUniqueId? overlayId, bool invalidate = true)
Parameters
overlayIdObjectUniqueId?A reference to the unique identifier of the overlay to remove. The value is set to null if the overlay is successfully removed.
invalidatebooltrue to invalidate the display after removing the overlay; otherwise, false. The default is true.
Returns
- bool
true if the overlay was found and removed; otherwise, false.
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.