AnnotationService.GetService Metoda

Definicja

AnnotationService Zwraca element skojarzony z określoną kontrolką wyświetlania dokumentów.

Przeciążenia

GetService(FlowDocumentReader)

Zwraca wartość AnnotationService skojarzona z określonym FlowDocumentReaderelementem .

GetService(FlowDocumentScrollViewer)

Zwraca wartość AnnotationService skojarzona z określonym FlowDocumentScrollViewerelementem .

GetService(DocumentViewerBase)

AnnotationService Zwraca wystąpienie skojarzone z określoną kontrolką wyświetlania dokumentów.

Uwagi

Metoda GetService może służyć do zwracania skojarzonego AnnotationService z następującymi kontrolkami wyświetlania dokumentów:

Kontrolka przeglądarki skojarzona z usługą adnotacji jest określona w parametrze konstruktora AnnotationService .

GetService(FlowDocumentReader)

Zwraca wartość AnnotationService skojarzona z określonym FlowDocumentReaderelementem .

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

Parametry

reader
FlowDocumentReader

Kontrolka czytnika dokumentów, dla których ma być zwracane AnnotationService wystąpienie.

Zwraca

Skojarzony AnnotationService z daną kontrolką czytnika dokumentów lub null jeśli określony czytnik dokumentów nie AnnotationServicema elementu .

Wyjątki

reader to null.

Uwagi

Metoda GetService może służyć do zwracania skojarzonego AnnotationService z następującymi kontrolkami wyświetlania dokumentów:

Kontrolka przeglądarki skojarzona z usługą adnotacji jest określona w parametrze konstruktora AnnotationService .

Zobacz też

Dotyczy

GetService(FlowDocumentScrollViewer)

Zwraca wartość AnnotationService skojarzona z określonym FlowDocumentScrollViewerelementem .

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

Parametry

viewer
FlowDocumentScrollViewer

Kontrolka podglądu dokumentów, dla których ma być zwracane AnnotationService wystąpienie.

Zwraca

Skojarzony AnnotationService z daną kontrolką podglądu dokumentów lub null jeśli określona kontrolka przeglądarki nie AnnotationServicema .

Wyjątki

viewer to null.

Uwagi

Metoda GetService może służyć do zwracania skojarzonego AnnotationService z następującymi kontrolkami wyświetlania dokumentów:

Kontrolka przeglądarki skojarzona z usługą adnotacji jest określona w parametrze konstruktora AnnotationService .

Zobacz też

Dotyczy

GetService(DocumentViewerBase)

AnnotationService Zwraca wystąpienie skojarzone z określoną kontrolką wyświetlania dokumentów.

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

Parametry

viewer
DocumentViewerBase

Kontrolka wyświetlania dokumentu, dla których ma być zwracane AnnotationService wystąpienie.

Zwraca

Skojarzony AnnotationService z daną kontrolką wyświetlania dokumentu lub null jeśli określona kontrolka wyświetlania dokumentów nie AnnotationServicema .

Wyjątki

viewer to null.

Uwagi

Metoda GetService może służyć do zwracania skojarzonego AnnotationService z następującymi kontrolkami wyświetlania dokumentów:

Kontrolka przeglądarki skojarzona z usługą adnotacji jest określona w parametrze konstruktora AnnotationService .

Zobacz też

Dotyczy