AnnotationService.CreateInkStickyNoteCommand フィールド

定義

現在の選択でインク注釈を作成するコマンドを表します。

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

フィールド値

次の例は、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>

適用対象

こちらもご覧ください