AnnotationHelper.DeleteTextStickyNotesForSelection(AnnotationService) 方法

定义

删除完全包含在与给定 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)

参数

service
AnnotationService

从中删除文本粘滞便笺批注的批注服务。

例外

servicenull

未启用 service

注解

如果与 AnnotationService 包含的用户选择关联的查看器控件或用户选择不完全包含任何文本便笺批注, DeleteTextStickyNotesForSelection 则不执行任何操作。

必须通过调用之前DeleteTextStickyNotesForSelection调用AnnotationService.Enable来启用给定批注service

适用于

另请参阅