Editar

Compartilhar via


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.

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

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

See also