다음을 통해 공유


AnnotationService.DeleteStickyNotesCommand 필드

정의

현재 선택 영역에서 모든 잉크 메모 및 텍스트 메모 주석을 삭제하는 명령을 나타냅니다.

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 

필드 값

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>

적용 대상

추가 정보