AnnotationHelper.DeleteInkStickyNotesForSelection(AnnotationService) Method

Definition

Deletes ink sticky note annotations that are wholly contained within the current selection of the viewer control associated with the given AnnotationService.

public:
 static void DeleteInkStickyNotesForSelection(System::Windows::Annotations::AnnotationService ^ service);
public static void DeleteInkStickyNotesForSelection (System.Windows.Annotations.AnnotationService service);
static member DeleteInkStickyNotesForSelection : System.Windows.Annotations.AnnotationService -> unit
Public Shared Sub DeleteInkStickyNotesForSelection (service As AnnotationService)

Parameters

service
AnnotationService

The annotation service from which to delete ink sticky note annotations.

Exceptions

service is null.

service is not enabled.

Remarks

If the viewer control associated with the AnnotationService contains no user selection or the user selection does not wholly contain any ink sticky note annotations, DeleteInkStickyNotesForSelection performs no operation.

The given annotation service must be enabled by means of a call to AnnotationService.Enable prior to calling DeleteInkStickyNotesForSelection.

Applies to

See also