AnnotationService.DeleteAnnotationsCommand Champ

Définition

Représente la commande pour supprimer toutes les annotations de pense-bête manuscrit, de pense-bête de texte et en surbrillance dans la sélection actuelle.

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

Valeur de champ

RoutedUICommand

Exemples

L’exemple suivant montre comment affecter des commandes routées aux éléments de menu 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>

S’applique à

Voir aussi