AnnotationService.DeleteAnnotationsCommand Field
.NET Framework 4.5
Represents the command to delete all ink-note, text-note, and highlight annotations in the current selection.
Namespace: System.Windows.Annotations
Assembly: PresentationFramework (in PresentationFramework.dll)
Field Value
Type: System.Windows.Input.RoutedUICommandThe routed command to delete all ink-note, text-note, and highlight annotations in the current selection.
The following example shows how to assign routed commands to menu items in XAML.
<DocumentViewer.ContextMenu> <ContextMenu> <MenuItem Command="ApplicationCommands.Copy" /> <Separator /> <!-- Add a Highlight annotation to a user selection. --> <MenuItem Command="ann:AnnotationService.CreateHighlightCommand" Header="Add Highlight" /> <!-- Add a Text Note annotation to a user selection. --> <MenuItem Command="ann:AnnotationService.CreateTextStickyNoteCommand" Header="Add Text Note" /> <!-- Add an Ink Note annotation to a user selection. --> <MenuItem Command="ann:AnnotationService.CreateInkStickyNoteCommand" Header="Add Ink Note" /> <Separator /> <!-- Remove Highlights from a user selection. --> <MenuItem Command="ann:AnnotationService.ClearHighlightsCommand" Header="Remove Highlights" /> <!-- Remove Text Notes and Ink Notes from a user selection. --> <MenuItem Command="ann:AnnotationService.DeleteStickyNotesCommand" Header="Remove Notes" /> <!-- Remove Highlights, Text Notes, Ink Notes from a selection. --> <MenuItem Command="ann:AnnotationService.DeleteAnnotationsCommand" Header="Remove Highlights & Notes" /> </ContextMenu> </DocumentViewer.ContextMenu>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.