AnnotationService.GetService Méthode

Définition

Retourne le AnnotationService associé à un contrôle d'affichage de document spécifié.

Surcharges

GetService(FlowDocumentReader)

Retourne le AnnotationService associé à un FlowDocumentReader spécifié.

GetService(FlowDocumentScrollViewer)

Retourne le AnnotationService associé à un FlowDocumentScrollViewer spécifié.

GetService(DocumentViewerBase)

Retourne l'instance AnnotationService associée à un contrôle d'affichage de document spécifié.

Remarques

La GetService méthode peut être utilisée pour retourner le AnnotationService associé aux contrôles d’affichage de document suivants :

Le contrôle de visionneuse associé au service d’annotation est spécifié dans le paramètre du AnnotationService constructeur.

GetService(FlowDocumentReader)

Retourne le AnnotationService associé à un FlowDocumentReader spécifié.

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

Paramètres

reader
FlowDocumentReader

Contrôle de lecteur de document pour lequel retourner l'instance AnnotationService.

Retours

AnnotationService associé au contrôle de lecteur de document donné ; ou null si le lecteur de document spécifié n'a aucun AnnotationService.

Exceptions

reader a la valeur null.

Remarques

La GetService méthode peut être utilisée pour retourner le AnnotationService associé aux contrôles d’affichage de document suivants :

Le contrôle de visionneuse associé au service d’annotation est spécifié dans le paramètre du AnnotationService constructeur.

Voir aussi

S’applique à

GetService(FlowDocumentScrollViewer)

Retourne le AnnotationService associé à un FlowDocumentScrollViewer spécifié.

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

Paramètres

viewer
FlowDocumentScrollViewer

Contrôle de visionneuse de document pour lequel retourner l'instance AnnotationService.

Retours

AnnotationService associé au contrôle de visionneuse de document donné ; ou null si le contrôle de visionneuse spécifié n'a aucun AnnotationService.

Exceptions

viewer a la valeur null.

Remarques

La GetService méthode peut être utilisée pour retourner le AnnotationService associé aux contrôles d’affichage de document suivants :

Le contrôle de visionneuse associé au service d’annotation est spécifié dans le paramètre du AnnotationService constructeur.

Voir aussi

S’applique à

GetService(DocumentViewerBase)

Retourne l'instance AnnotationService associée à un contrôle d'affichage de document spécifié.

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

Paramètres

viewer
DocumentViewerBase

Contrôle d'affichage de document pour lequel retourner l'instance AnnotationService.

Retours

AnnotationService associé au contrôle d'affichage de document donné ; ou null si le contrôle d'affichage de document spécifié n'a aucun AnnotationService.

Exceptions

viewer a la valeur null.

Remarques

La GetService méthode peut être utilisée pour retourner le AnnotationService associé aux contrôles d’affichage de document suivants :

Le contrôle de visionneuse associé au service d’annotation est spécifié dans le paramètre du AnnotationService constructeur.

Voir aussi

S’applique à