AnnotationHelper.DeleteTextStickyNotesForSelection(AnnotationService) Method

Definition

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

C#
public static void DeleteTextStickyNotesForSelection(System.Windows.Annotations.AnnotationService service);

Parameters

service
AnnotationService

The annotation service from which to delete text 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 text sticky note annotations, DeleteTextStickyNotesForSelection performs no operation.

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

Applies to

Produit Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also