AnnotationService.GetService 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
AnnotationService 지정한 문서 보기 컨트롤과 연결된 컨트롤을 반환합니다.
오버로드
| Name | Description |
|---|---|
| GetService(FlowDocumentReader) |
지정된 . AnnotationService 와 연결된 값을 반환합니다 FlowDocumentReader. |
| GetService(FlowDocumentScrollViewer) |
지정된 . AnnotationService 와 연결된 값을 반환합니다 FlowDocumentScrollViewer. |
| GetService(DocumentViewerBase) |
AnnotationService 지정한 문서 보기 컨트롤과 연결된 인스턴스를 반환합니다. |
설명
이 메서드를 GetService 사용하여 다음 문서 보기 컨트롤과 연결된 컨트롤을 반환 AnnotationService 할 수 있습니다.
DocumentViewerBase 파생 서브클래스
주석 서비스와 연결된 뷰어 컨트롤은 생성자에 대한 매개 변수에 AnnotationService 지정됩니다.
GetService(FlowDocumentReader)
지정된 . AnnotationService 와 연결된 값을 반환합니다 FlowDocumentReader.
public:
static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::FlowDocumentReader ^ reader);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.FlowDocumentReader reader);
static member GetService : System.Windows.Controls.FlowDocumentReader -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (reader As FlowDocumentReader) As AnnotationService
매개 변수
- reader
- FlowDocumentReader
인스턴스를 반환할 문서 판독기 AnnotationService 컨트롤입니다.
반품
AnnotationService 지정된 문서 판독기 컨트롤과 연결되었거나 null 지정한 문서 판독기에서 이 컨트롤이 없는 AnnotationService경우
예외
reader은 null입니다.
설명
이 메서드를 GetService 사용하여 다음 문서 보기 컨트롤과 연결된 컨트롤을 반환 AnnotationService 할 수 있습니다.
DocumentViewerBase 파생 서브클래스
주석 서비스와 연결된 뷰어 컨트롤은 생성자에 대한 매개 변수에 AnnotationService 지정됩니다.
추가 정보
적용 대상
GetService(FlowDocumentScrollViewer)
지정된 . AnnotationService 와 연결된 값을 반환합니다 FlowDocumentScrollViewer.
public:
static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::FlowDocumentScrollViewer ^ viewer);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.FlowDocumentScrollViewer viewer);
static member GetService : System.Windows.Controls.FlowDocumentScrollViewer -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (viewer As FlowDocumentScrollViewer) As AnnotationService
매개 변수
- viewer
- FlowDocumentScrollViewer
인스턴스를 반환 AnnotationService 할 문서 뷰어 컨트롤입니다.
반품
AnnotationService 지정된 문서 뷰어 컨트롤과 연결되었거나 null 지정된 뷰어 컨트롤에 없는 AnnotationService경우
예외
viewer은 null입니다.
설명
이 메서드를 GetService 사용하여 다음 문서 보기 컨트롤과 연결된 컨트롤을 반환 AnnotationService 할 수 있습니다.
DocumentViewerBase 파생 서브클래스
주석 서비스와 연결된 뷰어 컨트롤은 생성자에 대한 매개 변수에 AnnotationService 지정됩니다.
추가 정보
적용 대상
GetService(DocumentViewerBase)
AnnotationService 지정한 문서 보기 컨트롤과 연결된 인스턴스를 반환합니다.
public:
static System::Windows::Annotations::AnnotationService ^ GetService(System::Windows::Controls::Primitives::DocumentViewerBase ^ viewer);
public static System.Windows.Annotations.AnnotationService GetService(System.Windows.Controls.Primitives.DocumentViewerBase viewer);
static member GetService : System.Windows.Controls.Primitives.DocumentViewerBase -> System.Windows.Annotations.AnnotationService
Public Shared Function GetService (viewer As DocumentViewerBase) As AnnotationService
매개 변수
- viewer
- DocumentViewerBase
인스턴스를 반환 AnnotationService 할 문서 보기 컨트롤입니다.
반품
AnnotationService 지정된 문서 보기 컨트롤과 연결되었거나 null 지정한 문서 보기 컨트롤에 없는 AnnotationService경우
예외
viewer은 null입니다.
설명
이 메서드를 GetService 사용하여 다음 문서 보기 컨트롤과 연결된 컨트롤을 반환 AnnotationService 할 수 있습니다.
DocumentViewerBase 파생 서브클래스
주석 서비스와 연결된 뷰어 컨트롤은 생성자에 대한 매개 변수에 AnnotationService 지정됩니다.