AnnotationService.GetService Método

Definición

Devuelve el AnnotationService asociado a un control de vista de documentos especificado.

Sobrecargas

GetService(FlowDocumentReader)

Devuelve el AnnotationService asociado a un FlowDocumentReader especificado.

GetService(FlowDocumentScrollViewer)

Devuelve el AnnotationService asociado a un FlowDocumentScrollViewer especificado.

GetService(DocumentViewerBase)

Devuelve la instancia de AnnotationService asociada a un control de vista de documentos especificado.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

GetService(FlowDocumentReader)

Devuelve el AnnotationService asociado a un FlowDocumentReader especificado.

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

Parámetros

reader
FlowDocumentReader

Control de lector de documentos para el que se devuelve la instancia de AnnotationService.

Devoluciones

AnnotationService asociado al control de lector de documentos determinado; o null si el lector de documentos especificado no tiene AnnotationService.

Excepciones

reader es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a

GetService(FlowDocumentScrollViewer)

Devuelve el AnnotationService asociado a un FlowDocumentScrollViewer especificado.

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

Parámetros

viewer
FlowDocumentScrollViewer

Control de visor de documentos para el que se devuelve la instancia de AnnotationService.

Devoluciones

AnnotationService asociado al control de visor de documentos determinado; o null si el control de visor especificado no tiene AnnotationService.

Excepciones

viewer es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a

GetService(DocumentViewerBase)

Devuelve la instancia de AnnotationService asociada a un control de vista de documentos especificado.

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

Parámetros

viewer
DocumentViewerBase

Control de vista de documentos para el que se devuelve la instancia de AnnotationService.

Devoluciones

AnnotationService asociado al control de vista de documentos determinado; o null si el control de vista de documentos especificado no tiene AnnotationService.

Excepciones

viewer es null.

Comentarios

El GetService método se puede usar para devolver el AnnotationService asociado a los siguientes controles de visualización de documentos:

El control de visor asociado al servicio de anotación se especifica en el parámetro para el AnnotationService constructor.

Consulte también

Se aplica a