Aracılığıyla paylaş


AnnotationService.CreateHighlightCommand Alan

Tanım

Geçerli seçimde vurgulama ek açıklaması oluşturmak için komutunu temsil eder.

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

Alan Değeri

Örnekler

Aşağıdaki örnekte, XAML'deki menü öğelerine yönlendirilmiş komutların nasıl atanacakları gösterilmektedir.

<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>

Şunlara uygulanır

Ayrıca bkz.