AnnotationHelper.CreateTextStickyNoteForSelection 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 뷰어 컨트롤과 연결된 뷰어 컨트롤의 현재 선택 영역에 텍스트 스티커 메모 주석을 AnnotationService만듭니다.
public:
static System::Windows::Annotations::Annotation ^ CreateTextStickyNoteForSelection(System::Windows::Annotations::AnnotationService ^ service, System::String ^ author);
public static System.Windows.Annotations.Annotation CreateTextStickyNoteForSelection(System.Windows.Annotations.AnnotationService service, string author);
static member CreateTextStickyNoteForSelection : System.Windows.Annotations.AnnotationService * string -> System.Windows.Annotations.Annotation
Public Shared Function CreateTextStickyNoteForSelection (service As AnnotationService, author As String) As Annotation
매개 변수
- service
- AnnotationService
텍스트 스티커 메모 주석을 만드는 데 사용할 주석 서비스입니다.
- author
- String
주석의 작성자입니다.
반품
텍스트 스티커 메모 주석입니다. 또는 null주석을 달 수 있는 선택한 콘텐츠가 없으면 입니다.
예외
service은 null입니다.
service 사용할 수 없습니다.
뷰어 컨트롤에 콘텐츠 선택 항목이 없습니다.
설명
텍스트 스티커 메모 주석은 생성자에 지정된 , , DocumentViewerBase또는 컨트롤의 DocumentViewer현재 선택 영역으로 정의된 콘텐츠에 FlowDocumentPageViewer 고정됩니다.FlowDocumentScrollViewerFlowDocumentReaderAnnotationService
사용자가 선택한 콘텐츠(선택 길이가 길이가 0)가 없는 경우 주석이 만들어지지 않고 InvalidOperationException throw됩니다.
author 는 작성자가 정의되지 않은 경우와 같이 null 지정할 수 있습니다.
호출하기 전에 service호출을 통해 지정된 주석 AnnotationService.Enable 을 CreateTextStickyNoteForSelection 사용하도록 설정해야 합니다.