AnnotationHelper.DeleteInkStickyNotesForSelection(AnnotationService) 方法

定义

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

参数

service
AnnotationService

从中删除墨迹粘滞便笺批注的批注服务。

例外

servicenull

未启用 service

注解

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

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

适用于

另请参阅