Compartir a través de


AnnotationService.DeleteStickyNotesCommand Campo

Definición

Representa el comando para eliminar todas las anotaciones de nota de lápiz y de nota de texto en la selección actual.

public: static initonly System::Windows::Input::RoutedUICommand ^ DeleteStickyNotesCommand;
public static readonly System.Windows.Input.RoutedUICommand DeleteStickyNotesCommand;
 staticval mutable DeleteStickyNotesCommand : System.Windows.Input.RoutedUICommand
Public Shared ReadOnly DeleteStickyNotesCommand As RoutedUICommand 

Valor de campo

Ejemplos

En el ejemplo siguiente se muestra cómo se asignan los comandos enrutados a los elementos de menú en 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>

Se aplica a

Consulte también